🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #4554

TIdMessage.SaveToFile in '.eml' format

#4554
From: Ivan
Date: Mon, 24 Jan 2005 10:58
144 lines
5798 bytes
Hello, All !!!
 
I try to save email message in to ".eml" format, by using TIdMessage.SaveToFile. The message was in MIME with attachment
and body.
After saving, I try to open this file by Outlook Express and find unwriteble text.
So I understand that problem in MIME BOUNDARY, cause in message there are 2 boundaries and Outlook can't understand what
boundary to use.
I saw function procedure TIdMessageClient.SendBody(AMsg: TIdMEssage),
which save the message. 
You can see the part of message :
///-------------------------------------------------------------
This is a multi-part message in MIME format
 
--=_NextPart_2rfkindysadvnqw3nerasdf
Content-Type: multipart/alternative; 
        boundary="=_NextPart_2altrfkindysadvnqw3nerasdf"
 
--=_NextPart_2altrfkindysadvnqw3nerasdf
Content-Type: multipart/alternative; boundary="----=_NextPart_001_0013_01C4FFCC.344317C0"
Content-Transfer-Encoding: quoted-printable
///-------------------------------------------------------------
Please, try you solve this problem?

Ivan Persiyanov

All Message :

Return-Path: <persik@aktech.ru>
Delivered-To: persik-simpo@291.ru
Received: from developer3 (developer3.techno.291.ru [192.168.1.102])
	by agate (Postfix) with SMTP id CE10AFDA
	for <persik@aktech.ru>; Fri, 21 Jan 2005 15:16:38 +0300 (MSK)
Message-ID: <001601c4ffb3$0efd0bb0$6601a8c0@techno.291.ru>
From: "Ivan Persiyanov" <persik@aktech.ru>
To: "Ivan Persiyanov" <persik@aktech.ru>
Subject: =?koi8-r?B?Rnc6IMHMzMU=?=
Date: Fri, 21 Jan 2005 15:16:38 +0300
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=_NextPart_2rfkindysadvnqw3nerasdf"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Library: Indy 9.00.10

This is a multi-part message in MIME format

--=_NextPart_2rfkindysadvnqw3nerasdf
Content-Type: multipart/alternative; 
        boundary="=_NextPart_2altrfkindysadvnqw3nerasdf"

--=_NextPart_2altrfkindysadvnqw3nerasdf
Content-Type: multipart/alternative; boundary="----=_NextPart_001_0013_01C4FFCC.344317C0"
Content-Transfer-Encoding: quoted-printable




--=_NextPart_2altrfkindysadvnqw3nerasdf
Content-Type: text/plain; charset="koi8-r"
Content-Transfer-Encoding: quoted-printable


----- Original Message -----=20
From: Ivan Persiyanov=20
To: Ivan Persiyanov=20
Sent: Wednesday, January 19, 2005 7:34 PM
Subject: Fw: =C1=CC=CC=C5



----- Original Message -----=20
From: Ivan Persiyanov=20
To: Ivan Persiyanov=20
Sent: Monday, January 17, 2005 1:15 PM
Subject: =C1=CC=CC=C5


=F0=D2=C9=D7=C5=D4.

=F0=CF=D3=D9=CC=C1=C0 =F7=C1=CD =D2=C5=DA=C0=CD=C5.

=F3 =D5=D7=C1=D6=C5=CE=C9=C5=CD. =E9=D7=C1=CE


--=_NextPart_2altrfkindysadvnqw3nerasdf
Content-Type: text/html; charset="koi8-r"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dkoi8-r">=

<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>&nbsp;</DIV>
<DIV style=3D"FONT: 10pt arial">----- Original Message -----=20
<DIV style=3D"BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A=20=

title=3Dpersik@aktech.ru href=3D"mailto:persik@aktech.ru">Ivan Persiyano=
v</A> </DIV>
<DIV><B>To:</B> <A title=3Dpersik@aktech.ru href=3D"mailto:persik@aktech=
.ru">Ivan=20
Persiyanov</A> </DIV>
<DIV><B>Sent:</B> Wednesday, January 19, 2005 7:34 PM</DIV>
<DIV><B>Subject:</B> Fw: =C1=CC=CC=C5</DIV></DIV>
<DIV><BR></DIV>
<DIV>&nbsp;</DIV>
<DIV style=3D"FONT: 10pt arial">----- Original Message -----=20
<DIV style=3D"BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A=20=

title=3Dpersik@aktech.ru href=3D"mailto:persik@aktech.ru">Ivan Persiyano=
v</A> </DIV>
<DIV><B>To:</B> <A title=3Dpersik@aktech.ru href=3D"mailto:persik@aktech=
.ru">Ivan=20
Persiyanov</A> </DIV>
<DIV><B>Sent:</B> Monday, January 17, 2005 1:15 PM</DIV>
<DIV><B>Subject:</B> =C1=CC=CC=C5</DIV></DIV>
<DIV><BR></DIV>
<DIV><FONT face=3DArial size=3D2>=F0=D2=C9=D7=C5=D4.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>=F0=CF=D3=D9=CC=C1=C0 =F7=C1=CD =D2=C5=DA=
=C0=CD=C5.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>=F3 =D5=D7=C1=D6=C5=CE=C9=C5=CD. =E9=D7=
=C1=CE</FONT></DIV></BODY></HTML>



--=_NextPart_2altrfkindysadvnqw3nerasdf--

--=_NextPart_2rfkindysadvnqw3nerasdf
Content-Type: application/msword; name="=?koi8-r?B?7c/F8sXawM3FLmRvYw==?=";
        name="=?koi8-r?B?7c/F8sXawM3FLmRvYw==?="
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="=?koi8-r?B?7c/F8sXawM3FLmRvYw==?=";
        filename="=?koi8-r?B?7c/F8sXawM3FLmRvYw==?="

0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAABAAAA

Etcetera
Technical Details
Message-ID: <41f4d4c4$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!fr.ip.ndsoftware.net!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,bb2a6cfb7be62e14,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Ivan" <persik@aktech.ru>
Sender: "Ivan" <persik@aktech.ru>
Reply-To: "Ivan" <persik@aktech.ru>
Subject: TIdMessage.SaveToFile in '.eml' format
Newsgroups: borland.public.cppbuilder.internet.socket
X-User-Info: 213.247.207.37     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <41f4d4c4$1@newsgroups.borland.com>
Date: 24 Jan 2005 02:58:12 -0800
X-Trace: newsgroups.borland.com 1106564292 207.105.83.66 (24 Jan 2005 02:58:12 -0800)
Lines: 145
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!fr.ip.ndsoftware.net!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail