Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Fetching to and from and subject from MIME:Parser
When using MIME:Parser, how can one fetch the subject:, to: and from:
fields from the email message?

Thanks

Report this thread to moderator Post Follow-up to this message
Old Post
Deke
10-13-04 08:55 AM


Re: Fetching to and from and subject from MIME:Parser
"Deke" <Deke@nospam.com> wrote in message
news:10mp8u7c99t3ff4@news.supernews.com...
> When using MIME:Parser, how can one fetch the subject:, to: and from:
> fields from the email message?

Have you read the supporting documentation for the class you're using?
perldoc MIME::Parser:

Before reading further, you should see MIME::Tools to make
sure that you understand where this module fits into the
grand scheme of things.

doing what it says, we go to
perldoc MIME::Tools:
Parsing messages

You usually start by creating an instance of MIME::Parser
and setting up certain parsing parameters: what directory to
save extracted files to, how to name the files, etc.

You then give that instance a readable filehandle on which
waits a MIME message.  If all goes well, you will get back a
MIME::Entity object (a subclass of Mail::Internet), which
consists of...

o   A MIME::Head (a subclass of Mail::Header) which holds
the MIME header data.

I will leave the following the remainder of the documentation trail as
an exercise to the reader.

*After* you've read all the appropriate documentation, if you don't
understand some of it or your code doesn't do what you think it should
based on the documentation, *then* you should post again asking for
help.

Paul Lalli



Report this thread to moderator Post Follow-up to this message
Old Post
Paul Lalli
10-13-04 02:03 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Programming archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:00 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.