Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Feb : Re: Maildemo query

www.cryer.info
Managed Newsgroup Archive

Re: Maildemo query

Subject:Re: Maildemo query
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Wed, 20 Feb 2008 10:40:11

"Andy Syms" <asyms@technosoft.co.uk> wrote in message
news:47bc4f88$1@newsgroups.borland.com...

> 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.


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive