Article View: borland.public.cppbuilder.internet.socket
Article #5542Re: TIdMessage->LoadFromFile
From: Remy Lebeau (TeamB)
Date: Tue, 03 Aug 2004 07:03
Date: Tue, 03 Aug 2004 07:03
29 lines
2023 bytes
2023 bytes
"Alfred Thomas" <alfred@fischerint.co.za> wrote in message news:410f28c6$1@newsgroups.borland.com... > What is the preferred method of loading an > e-mail in order for this not to happen? It is doing exactly what it is supposed to be doing. If you don't want it to parse the encoded data, then set the NoDecode property to true, and the data will then be stored in the main Body property, but then you will be responsible for parsing it yourself manually. > I am receiving a mail from the postmaster with the original > e-mail as an attachment. I want to create a TIdMessage of > the original way, so that I can send it to the user exactly as > it came in. Then set the NoDecode and NoEncode properties both to true. > When I load from file, how do I know the body was attached > as a TIdText and should I scan for a TIdText attachment Check the MessageParts.Count property. If greater than 0, everything is in the MessageParts. Otherwise there was no encoded data and it will be stored in the main Body property instead. Gambit
Technical Details
Message-ID:
<410f38a0$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<410901cf$1@newsgroups.borland.com> <41092982$1@newsgroups.borland.com> <410f28c6$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,ef6a1e5c85f95618 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <410901cf$1@newsgroups.borland.com> <41092982$1@newsgroups.borland.com> <410f28c6$1@newsgroups.borland.com> Subject: Re: TIdMessage->LoadFromFile Date: Tue, 3 Aug 2004 00:03:45 -0700 Lines: 31 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <410f38a0$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1091516576 68.69.17.41 (3 Aug 2004 00:02:56 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail