|Subject:||Re: Maildemo problem|
|Posted by:||Remy Lebeau \(Indy Team\) (firstname.lastname@example.org)|
|Date:||Wed, 20 Feb 2008|
"Andy Syms" <asy…@technosoft.co.uk> wrote in message
> Debugging through the demo it gets to the RetrieveExecute
> method and at the comment //Setup attachment lists the value
> of Msg.MessageParts.Count is zero so the for loop to extract
> the body doesn't get executed.
What are the values of the TIdMessage's various properties (NoDecode and
Encoding in particular) after TIdPop3.Retrieve() exits?
> TIdMessageParts.Count doesn't appear in the documentation;
> is it deprecated?
No. But if the email message is not MIME encoded to begin with, the
MessageParts collection will not be filled in. The TIdMessage.Body property
will be used instead. The demo does not take that scenerio into account.
> Both Msg.MessageParts.AttachmentCount and
> Msg.MessageParts.TextPartCount are also zero
> at the breakpoint.
As they should be. Those values are not updated when receiving messages,
only when sending messages.
Maildemo problem posted by Andy Syms on Wed, 20 Feb 2008