Hi,
While parsing MIME using Erlang, I'm able to extract header, body and attachment. So now I have to parse all these parts separately.
Header structure:
Header-tag : header-value\n
Example:
Delivered-To: [email protected]\nReceived: by 1.gnu.geodesic.net (fdm 1.5, account "mail");\n\tFri, 03 Jul 2009 16:56:03 +0530\n
so from above example i have to extract Delivered-To: [email protected] and Received: by 1.gnu.geodesic.net (fdm 1.5, account "mail");\n\tFri, 03 Jul 2009 16:56:03 +0530\n using some way to split with \n. But the second header's value contains \n\t so split stops there... I want a strict split which will split only with \n.
Thanks in advance.