Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Matching multiple patterns with regex

by afoken (Chancellor)
on Oct 31, 2015 at 12:15 UTC ( [id://1146571]=note: print w/replies, xml ) Need Help??


in reply to Re: Matching multiple patterns with regex
in thread Matching multiple patterns with regex

RFC 2822 seems to state the "Subject:" and other keywords are case-INsensitive

... and to make things worse, "2.2.3. Long Header Fields" allows to wrap lines so that the content is split over several lines. This is a single logical header line, split over several physical lines:

Subject: Mail parsing looks simple until you have read the RFCs

Additionally, RFC2047 allows encoding of non-ASCII characters.

Any mail parser should be able to handle that, too.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-03-28 18:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found