|Subject:||Re: IdMessage: how to save uuencoded attachment?|
|Posted by:||Remy Lebeau \(Indy Team\) (email@example.com)|
|Date:||Fri, 2 Feb 2007|
"Michael Scherr" <mi.sche…@gmx.de> wrote in message
> eMail.MessageParts.AttachmentEncoding = 'UUE'
> eMail.MessageParts.AttachmentCount = 0
That property is not updated when downloading a message, only when
> 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
> 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.
IdMessage: how to save uuencoded attachment? posted by Michael Scherr on Thu, 01 Feb 2007