Re: IdMessage: how to save uuencoded attachment?

Giganews Newsgroups
Subject: Re: IdMessage: how to save uuencoded attachment?
Posted by:  Remy Lebeau \(Indy Team\) (no.spam@no.spam.com)
Date: Fri, 2 Feb 2007

"Michael Scherr" <mi.sche…@gmx.de> wrote in message
news:435C61195C19E340mi.sche…@gmx.de...

> eMail.MessageParts.AttachmentEncoding = 'UUE'

> eMail.MessageParts.AttachmentCount = 0

That property is not updated when downloading a message, only when
sending one.

> eMail.MessageParts.Count = 0

Make sure that you have IdMessageCoderUUE in your uses clause.
Otherwise, the UUE decoder will not be active.

> I've seen the samples, but they only work if the attachment ist not
UUE:
> Like:
>    for j := 0 to eMail.MessageParts.Count - 1 do
>        if eMail.MessageParts.Items[j] is TIdAttachment then

That code works exactly the same way for UUE as well, when the UUE
decoder is actually used.

Gambit

Replies

None

In response to

IdMessage: how to save uuencoded attachment? posted by Michael Scherr on Thu, 01 Feb 2007