Empty body with 9.0.10

Giganews Newsgroups
Subject: Empty body with 9.0.10
Posted by:  Jon E. Scott (NOSPAMsuppo…@blueorbsoft.comNOSPAM)
Date: Fri, 16 Apr 2004

I can't seem to figure this one out, since it doesn't happen on my machine
but on one of my tester's machines.  We have a program built with D7 using
Indy 9.0.10 (shipped with Delphi) that checks for emails on a POP3 server
and creates records on a local database with text from the email body.
However, on this test machine, if he sends an email from Outlook 2000 to the
POP3 server and when the program pulls the email, Indy returns the body as
blank but Outlook express displays the body fine.  If he tries sending a
test email with Outlook Express it works fine, he only has problem when the
email comes from Outlook 200x.  I tried this scenario with a couple of my
machines and I can't reproduce it.  I looked at the trace log that the
program writes to on his machine and Indy finds the body, but the
ContentType is blank and POP3Msg.Body.Text is blank:

POP3Msg.MessageParts.Items[idx].ClassName = TIdText
POP3Msg.MessageParts.Items[idx].ContentType =
TIdText(POP3Msg.MessageParts.Items[idx]).Body.Text = <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.4417.0">
<TITLE>This is the Subject Line.</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">This is the description</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">-----Original Message-----</FONT>

<BR><FONT SIZE=2 FACE="Courier New">From: (snip)</FONT>

<BR><FONT SIZE=2 FACE="Courier New">Sent: Tuesday, April 13, 2004 11:16
AM</FONT>

<BR><FONT SIZE=2 FACE="Courier New">To: (snip)</FONT>

<BR><FONT SIZE=2 FACE="Courier New">Subject: Another Test</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Courier New">This is the descxription.</FONT>
</P>

</BODY>
</HTML>

POP3Msg.Body.Text =

If I try 9.0.14, it's worse as it will return blank for
TIdText(POP3Msg.MessageParts.Items[idx]).Body.Text.  Can anyone help me out?

--
Thanks,
Jon E. Scott
Blue Orb Software
http://www.blueorbsoft.com

Replies