in reply to Better way to get the results of grep()?

Do you know that logical mail header lines can be split across several physical lines? Any simple grep would find only the first part of the header. Use MIME::Parser, that module also handles other ugly things like encoded headers.

Alexander

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

Replies are listed 'Best First'.
Re^2: Better way to get the results of grep()?
by eye (Chaplain) on Dec 09, 2009 at 19:50 UTC
    Do you know that logical mail header lines can be split across several physical lines?

    This is news to me. Can you provide a reference on this? Thanks!