Hi All,
I really need your help on this one. I must apologize that
my formatting has been terrible. I tried to use the code tag but it
I need to we-write an email header and none of the mail
modules work well for what want to do because the
mail is non-compliant. I need to find the first instance of the Recipients field.
For some reason it is not in the header, it is in the body.
I need to write the recipients field and associated email to a new file. (No whitespace allowed)
I then need to move down to the Content-Transfer-Encoding:
7bit field (the first instance as well), and append the rest of the mail (after
the blank space after the Content-Transfer-Encoding: 7bit field) to the new
file under the last recipient email address with no blank lines. This will make
the emails compliant so I can properly parse them
It may be easier just to remove the blank field after Content-Transfer-Encoding: 7bit;, then remove Content-Transfer-Encoding: 7bit; and all lines above it besides the recipients field and emails. (There are a couple of
blank lines above and below the recipients and emails). I am not sure and would appreciate some help. I have included the recipients field and the lines above it below. There is nothing but blank space under the recipients,
Thanks
Sender: "Capturil" <smtp:Capturil@manywhere.com>
Message-ID: <166E9D4D3E50EF4E87B2C7AC28634094784B@REDSERV1.RM.local>
Recipients:
"warren glick" <smtp:wglick@manywhere.com>,
"John Bentley" <smtp:JB@manywhere.com>,
"Earl Woolley" <smtp:EWoey@manywhere.com>,
"CaMail" <smtp:CaptureMail@manywhere.com>
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.