This project is read-only.

Serializing IMAPMessage

Dec 8, 2008 at 3:12 PM

I'm just wondering if anyone has serialized IMAPMessage to a file. 

I had to make IMAPLogger serializable for it to work and the resultant files are 12 megs per message.  12 megs seems excessive.  I've been playing with zip and 7z compression to get it down to somewhere between 0.5 and 2 megs per message.  I guess the next step is to play with what variables in IMAPMessage are included in the serialization. 

I want to backup 23,000+ messages on there right now (12MB*23000=265GB) from a two month pilot project and the number of emails per month are going to increase dramatically once it goes live.  I need to be able to restore any message to the email account, if it is needed.

Any ideas?