in reply to Re^3: loading files in thread loading files
what I want are the headers of an email logged in a txt file. the code where those stand are the email's themselfs. I want to put those emails in this program, get the headers: to, from, date, cc, subject and the filename of an possible attachment and print those in that txt file. but almost everything works already. the only thing that doesn't work is the loading of an email into my program in a way that it can be used first to get those headers and after that to get (if there are) the filenames of the attachments.
Re^5: loading files
by Corion (Patriarch) on Dec 22, 2008 at 14:22 UTC
|
From reading the Mail::Internet documentation, it seems to me that it doesn't support or handle attachments. For attachments, I guess you will want to use MIME::Parser or something from the Email namespace. These will give you both the body of the attachment(s) and the suggested filenames as well.
| [reply] |
|
if you looked at the code you saw that I have piece with Mail::Internet and a piece with MIME::Parser. like I said before: I only want to know how I can load my perltst file into mail::internet AND mime::parser.
thats my only problem
| [reply] |
|