text - the raw text of my message
body - the body of my message, as a MIMEDocument
fields - a dictionary mapping lowercased field names into collections of MIMEHeaderValue's
parts - if I am a multipart message, then this is a cache of my parts
return all fields with the specified name, concatenated together with separationString between each element. Return an empty string if no fields with the specified name are present
Rewrite header fields. The body is not modified.
Each field's key and value is reported to aBlock. The block's return value is the replacement for the entire header line. Nil means don't change the line, empty means delete it. After all fields are processed, evaluate appendBlock and append the result to the header.
Invoke the given block with each of the header fields from the given stream. The block arguments are the field name and value. The streams position is left right after the empty line separating header and body.
Parse a date from the given stream and answer nil if the date can't be parsed. The date may be in any of the following forms:
<day> <monthName> <year> (5 April 1982; 5-APR-82)
<monthName> <day> <year> (April 5, 1982)
<monthNumber> <day> <year> (4/5/82)
In addition, the date may be preceded by the day of the week and an optional comma, such as:
Tue, November 14, 1989
Reply with a cleaned up version email header. First show fields people would normally want to see (in a regular order for easy browsing), and then any other fields not explictly excluded