Punto has asked for the wisdom of the Perl Monks concerning the following question:
I have a script that gets all the mail from STDIN, that delivers the mail to a mysql database. I have 2 questions/problems with the attachments:
- I found a lot of modules with nice examples that show how to create and send an e-mail with an attachment, but I can't find anything to get get the mime parts and save them on files or something. The closest I found was Mime::parser, but I don't understan the documentation.. :) Can anyone suggest somthing, or post examples?
- Attachments could be really big, so I don't want to use the script's memory to hold the file. I think the modules send everything to a temp file, but how would I send that temp file to the database without storing everithing on a temp. variable? (is there a "binary" data type on mysql, or something like that?)
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: dealing with attachments (again)
by httptech (Chaplain) on May 25, 2000 at 21:09 UTC | |
by BBQ (Curate) on May 25, 2000 at 23:22 UTC | |
by Punto (Scribe) on May 26, 2000 at 09:10 UTC | |
by Punto (Scribe) on May 26, 2000 at 11:01 UTC | |
by httptech (Chaplain) on May 26, 2000 at 17:41 UTC | |
|
Re: dealing with attachments (again)
by dfrazier (Initiate) on May 25, 2000 at 21:18 UTC | |
by athomason (Curate) on May 25, 2000 at 22:57 UTC |