Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Parsing email for headers

by McD (Chaplain)
on Oct 05, 2009 at 02:06 UTC ( [id://799150]=note: print w/replies, xml ) Need Help??


in reply to Parsing email for headers

In addition to echoing what everyone else has to say about modules to use...

2. Is there any possibility where a "Message-ID" is not part of the mail header?

It's possible, but highly unlikely. Virtually every mail transport agent (sendmail, exchange, etc.) will add a message-id to a mail message if one isn't already there. Still, if this is production level code, you'd better test for the existence and complain if it's not found.

Mail header keywords are case-insensitive per the spec, and are separated from the message body by a single blank line.

Peace,
-McD

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-25 07:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found