This project is read-only.

"Raw" view of message

Mar 10, 2009 at 7:45 AM
I was wondering if there's any way to view the full "raw" contents of an IMAPMessage. So for example, something like this.

Thanks in advance!
Adam

---snip---

This is a multi-part message in MIME format.

------=_NextPart_000_3af1_1b57_5e90
Content-Type: text/html; format=flowed

<html><div style='background-color:'><DIV class=RTE></DIV>
<P>Ok, here are the attachments...</P>
<P>Pray for me as I am not very PC savvy - obviously!! <IMG height=19 src="http://graphics.hotmail.com/i.p.emsmiled.gif" width=19><BR><BR><BR>DeDe Williams </P>
<DIV></DIV>612-483-2188 (cell)
<DIV></DIV></div></html>

------=_NextPart_000_3af1_1b57_5e90
Content-Type: application/msword; name="SCC Ladies Mtg. Invite.doc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="SCC Ladies Mtg. Invite.doc"

0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAAB
AAAAAAAAAAAAAAAAAAAAAAAAAAA

(this goes on for a long time, and then the email ends like this)

------=_NextPart_000_3af1_1b57_5e90--

---snip---
Mar 11, 2009 at 10:26 AM
Looks like a fairly simple change required to IMAP.cs to add this method. Given time I'll have a go - if anyone wants, feel free to step in and help!

Sincerely,
Adam
Mar 11, 2009 at 11:14 PM
Hey Adam,

What would be the benefit/purpose of getting the message data in its raw format?

Also, i would recommend you now take a look at the Async version of the library. I just checked in a major update this afternoon that should make using the library much easier. The old synchronous (IMAP.cs) code base is no longer being updated.

Let me know if you have any questions or problems using the new async code.

Thanks,
Jason
Mar 12, 2009 at 10:47 AM
Jason,
 
I'm writing a small mail migration program and not having to reconstitute the mime message would be handy!
A couple of other IMAP providers allow for it but naturally I want to use InterIMAP! :)
 
Sincerely,
Adam