This project is read-only.

Save/Read to/from a memorystream

Sep 16, 2009 at 9:34 AM


I would use your great DLL in my software.

To save the mails I´will use a SQLite database I must convert the mail object into a memorystream.
When I reload the object I would convert the memorystream return to the mail object.

Please can you help me in this case. Maybe it´s an usefull new method for your library.

Maybe ReadFromStream() and SaveTo Stream()

Best regards


Sep 18, 2009 at 1:23 AM

You can create Pop3Message object from memory stream such as...

StreamReader sr = new StreamReader(myMemoryStream, myEncoding);

String BodyText = sr.ReadToEnd();

Pop3Message mg = new Pop3Message(BodyText);


And you can easily write to memory stream from Pop3Message object

Pop3Message mg = .........;

StreamWriter sr = new StreamWriter(myMemoryStream, inEncoding);




Sep 18, 2009 at 12:26 PM

I add new feature that receive data with stream class.

I hope that require your needs.

Please check it out!!