Board index » delphi » POP bug in mail attachements when using NOTES as mail server

POP bug in mail attachements when using NOTES as mail server

I had problems reading e-mail with attachements that was retrieved from
Notes server.
INDY incorectly assigned TidText / TidAttachement classes.

After studying for a while, I found out this:

*********************************************
LOTUS NOTES headers
(as found in Release 5.0.8 |June 18, 2001)
*********************************************

--=_NextPart_2rfkindysadvnqw3nerasdf
Content-Transfer-Encoding: 7bit
Content-Type: text/plain

This is mail body
--=_NextPart_2rfkindysadvnqw3nerasdf
Content-Type: application/octet-stream;
        name="myattachement.zip"
Content-Disposition: attachment;
        filename="myattachement.zip"
Content-Transfer-Encoding: base64
UEsDBBQAAAAIACVRAitZJ2lzhgEAAAAIAAARAAAAUG9zbERvZ1Zyc3RhTVMuRELtk71u1EAUhc94
...
--=_NextPart_2rfkindysadvnqw3nerasdf--
..

*********************************************
Usual SMTP headers (e.g. Exchange, Linux, ...)
*********************************************

This is a multi-part message in MIME format

--=_NextPart_2rfkindysadvnqw3nerasdf
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

This is mail body
--=_NextPart_2rfkindysadvnqw3nerasdf
Content-Type: application/octet-stream;
        name="myattachement.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
        filename="myattachement.zip"

UEsDBBQAAAAIABhTAitPlXqShQEAAAAIAAARAAAAUG9zbERvZ1Zyc3RhTVMuRELtk7tu1EAYhc94
...
--=_NextPart_2rfkindysadvnqw3nerasdf--
.

As you can see, the Content-Type / Content-Transfer-Encoding attributes in
NOTES
are in reverse order. They are mixed as well in the attachement section.

As a result of this, Indy 8.x wrongly interprets head information
(idMessageClient / ProcessNotification / line 203) and instead of
TIdText creates a TIdAttachement.

Would someone from the PitCrew be as nice as to dig in to the source and
make a patch for this?

Regards & Thanks,

Andrej Mertelj

 

Re:POP bug in mail attachements when using NOTES as mail server


This should be fixed in Indy 9.0

Other Threads