Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: loading files

by Bass-Fighter (Beadle)
on Dec 22, 2008 at 14:10 UTC ( [id://732081]=note: print w/replies, xml ) Need Help??


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.

Replies are listed 'Best First'.
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.

      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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://732081]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-26 07:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found