Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Apr : Re: Problem with Indy POP3 message & Attachments
| Subject: | Re: Problem with Indy POP3 message & Attachments |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Tue, 25 Apr 2006 10:49:06 |
"Mike Hall" <Mike.Hall@NOSPAMPLEASEMachine-IT.Com.invalid> wrote in message
news:444de291$1@newsgroups.borland.com...
> I have tried the latest verion 9 and also the latest release of version
10,
> but not the develpoment snapshot. This is because I don't want to
> introduce further complications with untested code.
The snapshot is over a year newer then the release. It has been tested, and
plenty of people use it in production projects.
> I have, however trace the decoding through the Indy source code,
> and have found that the problem is a space on the end of the line:
Told you the message was likely malformed ;-)
> Adding the line:
>
> LContentTransferEncoding := Trim(LContentTransferEncoding);
>
> in the place indicated resolves the problem.
All the more result that you should be using the latest snapshot, because
TIdHeaderList already trims the header values that is returns.
> I am assuming that this is a bug in the receiving code
It is a bug in the sender's code. It should not be putting extra spaces in
its headers to begin with.
> I would like to have theis fault reported to the Indy developers
It has already been addressed. You need to use a newer version that already
has it implemented.
Gambit