Article View: borland.public.cppbuilder.internet.socket
Article #2579Re: Saving unmodified mail (raw content)
From: 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?
Technical Details
Message-ID:
<44133e27@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44038552@newsgroups.borland.com> <44039e77$1@newsgroups.borland.com> <440463f9@newsgroups.borland.com> <440497b6$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,559528b37a8eae X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Mr. Wuf" <wuf@email.si> Newsgroups: borland.public.cppbuilder.internet.socket References: <44038552@newsgroups.borland.com> <44039e77$1@newsgroups.borland.com> <440463f9@newsgroups.borland.com> <440497b6$1@newsgroups.borland.com> Subject: Re: Saving unmodified mail (raw content) Date: Sat, 11 Mar 2006 22:16:56 +0100 Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 84.59.80.160 Message-ID: <44133e27@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1142111783 84.59.80.160 (11 Mar 2006 13:16:23 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail