Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Oct : Indy10-download of attachment impossible
| Subject: | Indy10-download of attachment impossible |
| Posted by: | "Michael" (_@_._) |
| Date: | Fri, 21 Oct 2005 16:20:13 |
>The only way anyone can diagnose it for you is if you provide a COMPLETE,
>unedited message (well, maybe for sensitive values, but NOT layout and
>content formatting) that someone can actually run through a debugger. What
>you posted earlier is not a complete message, you stripped things out of
it.
>Gambit
I've tried to send again the complete text file obtained through RetrieveRaw
from the mail server.
Unfortunately I was rejected by the news server.
Returning to my specific problem I'll try to point out what happens in the
case of mails sent through of a Debian mail server and received on an MS
Exchange mail server.
Using Outlook I can download the attachment. Using Indy10 I couldn't
download the attachment (5-7K not more!!!).
Anyhow I would like to say that I've succeeded into downloading the message
as raw message into a text file.
I've tried then to load the message from that text file using LoadFromfile
method and what I've obtained astonished me:
Even though the message appeared Ok (viewed with Notepad) when set the
word-wrap to off I realized that between filename="test.zip" and the coded
part (the attachment) (e.g UEsD...) wasn't any CR-LF.
Under these circumstances when I've loaded into the TIdMessage the text
file, resulted an attachment of 0 (zero) bytes.
Changing the text file, that means adding a CR-LF after
filename="test.zip" and repeating the execution of my program everything
went ok and I got 3336 bytes (as it was the dimension of the zipped file).
Changing back the text file (that is removing the inserted CR-LF) again
the first situation's repeated. That is I got 0 (zero) bytes as attachment.
So, what do you say, there is any possibility of handling this (strange)
behavior?
Mike_