Re: checking IMAP mails for an attachment

Giganews Newsgroups
Subject: Re: checking IMAP mails for an attachment
Posted by:  Remy Lebeau (TeamB) (no.spam@no.spam.com)
Date: Fri, 3 Mar 2006

"Hans Peter" <hanspet…@hotmail.com> wrote in message
news:5774614068EFE240hanspet…@hotmail.com...

> i want to check if an mail on an imap server
> contains an attachment, but i have no idea
> how to do this

Have a look at the RetrieveStructure() and UIDRetrieveStructure() methods.

> if length(TheMsg.Headers.Values['X-Attachments']) > 0 then

By definition, 'X-' headers are non-standard, and thus not necessarily
supported on all systems.

Gambit

Replies

None

In response to

checking IMAP mails for an attachment posted by Hans Peter on Fri, 3 Mar 2006