NetTalk Central

Author Topic: IMAP - retrieve attachements?  (Read 5277 times)

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
IMAP - retrieve attachements?
« 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

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Re: IMAP - retrieve attachements?
« Reply #1 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