Maildemo problem

Giganews Newsgroups
Subject: Maildemo problem
Posted by:  Andy Syms (asy…@technosoft.co.uk)
Date: Wed, 20 Feb 2008

I'm new to Internet programming and am trying to do a 'quick and dirty'
email retrieval program using Indy 10 and Delphi 2006.

As a starting point I have built the maildemo application.

It detects a message and retrieves the header OK but not the body.  OE
retrieves the same message fine, both header and body.

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.

TIdMessageParts.Count doesn't appear in the documentation; is it
deprecated?  Both Msg.MessageParts.AttachmentCount and
Msg.MessageParts.TextPartCount are also zero at the breakpoint.

Any suggestions as to what is happening here please?

--
Andy Syms
Technosoft Systems Ltd

Replies