NetTalk Central

NetTalk E-Mail => E-Mail - Ask For Help => Topic started by: JohanR on September 23, 2012, 03:35:39 AM

Title: IMAP - retrieve attachements?
Post by: JohanR on September 23, 2012, 03:35:39 AM
Hi,

How would I go about retrieving attachments using the IMAP class?

I see the Imap.wholeMessage contains the complete message, attachements encoded included.

This could be quite large,
any pointers on handling this?

Or am I missing a method in the class that extracts the attachments?

The goal is to retrieve this message and store it in a Postgres DB along with attachements

thanks

Johan
Title: Re: IMAP - retrieve attachements?
Post by: JohanR on September 25, 2012, 12:57:31 PM


Ok,

found something,
as the mail is being FETCHED,
the attachments are saved in the path specified in the Imap.AttachmentPath property.


Now just to figure out how to control all of this.
eg.
Mails could have the attachments with the same name
So am going to see how to create temp folder for each mail being retrieved.

Johan