Hi,
I wanted to download all headers data and 1 year of body html from gmail using imap. I have over 3 lacks of mails.
So initially I'm getting all headers using:
List infos = imap.GetMessageInfoByUID(uids);
Then I'm preparing List and keeping 1 year of html data using following method:
imap.GetTextByUID(MimeStruct); (Here MimeStruct is a LIST which contains 1 year of bodystructure HTML.
But When I see in the task manager, the memory it consumes get increasing even over 1.5 GB and after sometime the program is getting crashed with message "System Out of Memory). So is there any solution to fetch all headers and bodystructure using less memory.
Thanks,
Sarathi