Indy 9.0.14 snapshot - TidMessage inexplicability

Giganews Newsgroups
Subject: Indy 9.0.14 snapshot - TidMessage inexplicability
Posted by:  Martin James (mjames_falc…@dial.pipex.com)
Date: Mon, 15 Mar 2004

In TIdMessageClient.SendBody there is this line:

      if AMsg.MessageParts.TextPartCount > 1 then
      [iterate the message parts & send all the text bits]

Why >1?  If a message has only one TidText part - not too uncommon - the
body does not get sent/stored.  The attachments appear fine, but no 'Here
are the files you asked for' text.

If I change the 1 to 0, my message gets its TidText.body text sent/stored as
well as the attachments.

Is there any reason for the '1'?  How are other developers sending a text
part?

Rgds,
Martin

Replies