chucknorris/sidepop — pull request #2 by Termit1975 (2012-07-09 11:33:49+00:00)
Title: Hi, I've fixed 3 issues I had plus I added a simple feature.

First bug: I had was when creating Attachments from Mime, date properties stored in the Mime entity, when were transferred over the Attachment, I had parsing exception because the date string was not in the correct format. Since after copying the key one by one, the existing code was setting those dates, I decided to skip them and rely on the fact that those properties were set after the loop

Second bug: When going through QuotedPrintableEncoding, I end up with extra '=' characters, the algorithm should not append the '=' character since it is only an indication that the line was breaked and continues.

Third bug: When decoding a small line with QuotedPrintableEncoding. Example: Fr=E9d=E9ric, I was getting a decoded string equal to "Frédéric\r\n", the algorithm should not add an extra line break if the line does not end with an equal and is the last line of the stream...

Feature: I added the possibility to get the initial content of the message and/or mime part. This is specially useful for us because we would like to attach in our system the original message. Saving the "RawMessage" as Something.eml file would display perfectly fine in Outlook, Lotus, Windows Live mail when opening the file in windows explorer. It is also very useful if any parsing error occurs, this would allow reprocessing the original e-mail and figure where is the parsing error.

Thanks for considering my contributions.