Thread View: borland.public.cppbuilder.internet.socket
11 messages
11 total messages
Started by Mr. Wuf
Mon, 27 Feb 2006 23:03
Saving unmodified mail (raw content)
Author: Mr. Wuf
Date: Mon, 27 Feb 2006 23:03
Date: Mon, 27 Feb 2006 23:03
6 lines
1111 bytes
1111 bytes
Hi, how do I save the full email raw content to a string or a file? If I retrieve the email with TIdPOP3 and call SaveToFile(), the mail will be damaged, because some boundaries are replaced by the component. I want to retrieve and save the mail to a file only.
Re: Saving unmodified mail (raw content)
Author: Remy Lebeau (TeamB)
Date: Tue, 28 Feb 2006 00:51
Date: Tue, 28 Feb 2006 00:51
18 lines
1645 bytes
1645 bytes
"Mr. Wuf" <wuf@email.si> wrote in message news:44038552@newsgroups.borland.com... > how do I save the full email raw content to a string or a file? If I > retrieve the email with TIdPOP3 and call SaveToFile(), the mail will > be damaged, because some boundaries are replaced by the component. Set the TIdMessage's NoDecode property to true before downloading, and the NoEncode property to true before saving. Then the file will contain the raw unedited content as-is. Alternatively, use the TIdPOP3's RetreiveRaw() method, which stores the downloaded content into a TStrings. Pass in a TStringList and use its SaveToFile() method. Gambit
Re: Saving unmodified mail (raw content)
Author: Mr. Wuf
Date: Tue, 28 Feb 2006 14:53
Date: Tue, 28 Feb 2006 14:53
1 lines
1069 bytes
1069 bytes
Thank you. And how do I do that with TIdIMAP4?
Re: Saving unmodified mail (raw content)
Author: Mark Jacobs
Date: Tue, 28 Feb 2006 16:25
Date: Tue, 28 Feb 2006 16:25
10 lines
1314 bytes
1314 bytes
"Mr. Wuf" <wuf@email.si> wrote in message news:440463f9@newsgroups.borland.com... > Thank you. And how do I do that with TIdIMAP4? I don't believe you can do the same with TIdIMAP4. It doesn't support the same methods, IIRC. I may be wrong though. -- Mark Jacobs DK Computing http://www.dkcomputing.co.uk
Re: Saving unmodified mail (raw content)
Author: Remy Lebeau (TeamB)
Date: Tue, 28 Feb 2006 18:35
Date: Tue, 28 Feb 2006 18:35
13 lines
1413 bytes
1413 bytes
"Mr. Wuf" <wuf@email.si> wrote in message news:440463f9@newsgroups.borland.com... > how do I do that with TIdIMAP4? The same way that I mentioned earlier - set the TIdMessage's NoDecode property to true before downloading, and the NoEncode property to true before saving it to file. There are no methods in TIdIMAP4 to retreive the raw data into a TStrings (or other container). Gambit
Re: Saving unmodified mail (raw content)
Author: Mr. Wuf
Date: Sat, 11 Mar 2006 21:16
Date: Sat, 11 Mar 2006 21:16
25 lines
2041 bytes
2041 bytes
>> how do I do that with TIdIMAP4?
>
> The same way that I mentioned earlier - set the TIdMessage's NoDecode
> property to true before downloading, and the NoEncode property to true
> before saving it to file. There are no methods in TIdIMAP4 to retreive
the
> raw data into a TStrings (or other container).
Sorry. I have a problem with TIdIMAP4 again. If I set TIdMessage's NoDecode
to true, I get no answer but this error: "Read Timout.". Tested with 3
different servers - the same error! Example code:
String UID = "3";
TIdMessage *IMAPRaw = new TIdMessage(this);
IMAPRaw->NoDecode = true;
IMAPRaw->NoEncode = true;
IdIMAP4->UIDRetrieve(UID, IMAPRaw);
TStringStream *RawMsg = new TStringStream(NULL);
IMAPRaw->SaveToStream(RawMsg, false);
Memo1->Text = RawMsg->DataString;
delete RawMsg;
delete IMAPRaw;
No problems if NoDecode is false.. but I need the raw message. Can you help
me again, please?
Re: Saving unmodified mail (raw content)
Author: Remy Lebeau (TeamB)
Date: Mon, 13 Mar 2006 21:28
Date: Mon, 13 Mar 2006 21:28
14 lines
1449 bytes
1449 bytes
"Mr. Wuf" <wuf@email.si> wrote in message news:44133e27@newsgroups.borland.com... > Sorry. I have a problem with TIdIMAP4 again. If I set TIdMessage's > NoDecode to true, I get no answer but this error: "Read Timout.". > Tested with 3 different servers - the same error! You'll have to take the issue up with Indy's other developers directly. I did not write TIdIMAP4. There is an IMAP4 newsgroup on Indy's own newsserver - news://news.atozed.com. Gambit
Re: Saving unmodified mail (raw content)
Author: Mr. Wuf
Date: Wed, 15 Mar 2006 12:44
Date: Wed, 15 Mar 2006 12:44
6 lines
1394 bytes
1394 bytes
> You'll have to take the issue up with Indy's other developers directly. I > did not write TIdIMAP4. There is an IMAP4 newsgroup on Indy's own > newsserver - news://news.atozed.com. Hmm.. It seems there are only few people who read there (but I will try to ask). I think this could be a bug in TIdIMAP4 (or TIdMessage ??).
Re: Saving unmodified mail (raw content)
Author: Mr. Wuf
Date: Wed, 05 Apr 2006 14:38
Date: Wed, 05 Apr 2006 14:38
4 lines
1198 bytes
1198 bytes
> You'll have to take the issue up with Indy's other developers directly. Nobody of the other developers could help me.. That is really very very unfortunate.
Re: Saving unmodified mail (raw content)
Author: Remy Lebeau (TeamB)
Date: Wed, 05 Apr 2006 17:10
Date: Wed, 05 Apr 2006 17:10
11 lines
1330 bytes
1330 bytes
"Mr. Wuf" <wuf@email.si> wrote in message news:4433d66c@newsgroups.borland.com... > Nobody of the other developers could help me. Who did you talk to? Ciaran? He's the one who actualy works on TIdIMAP4, and would be the best one to know what is happening and how to fix it. Gambit
Re: Saving unmodified mail (raw content)
Author: Mr. Wuf
Date: Wed, 05 Apr 2006 21:20
Date: Wed, 05 Apr 2006 21:20
24 lines
2087 bytes
2087 bytes
> Who did you talk to? Ciaran? Yes, he replied me. > [...] and how to fix it. Ehmm... maybe... or not. His answer was, that TIdIMAP4 seems to work in Indy10. But he mentioned no solution for Indy9. Ciaran's reply: "Indy 9 can only retrieve complete messages from servers that send out an email terminator CRLF.CRLF at the end of the message (I think there is a comment to this effect at the start of later TIdIMAP4.pas versions). Some servers do not do this, and Indy 9 can hang waiting for the CRLF.CRLF. Indy 10 uses a different mechanism for retrieving, that uses a byte-count field, which seems to work with all servers. Indy 10's TIdIMAP4 is significantly better than Indy 9, particularly with servers whose "unsolicited responses" cannot be turned off (these are typically updates of the status of the current mailbox). Some others have got Indy 10 working on CBuilder6 but you may need to check the other newsgroups here to find out how."
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads