IdMaessage.loadfromfile & savetofile cause different files

Giganews Newsgroups
Subject: IdMaessage.loadfromfile & savetofile cause different files
Posted by:  MTarvirdi (MTa…@kosar.net)
Date: Sun, 14 Mar 2004

Hi,
I have
I created an IDMessage and saved and stored it as a file (Input.eml). Then I
read it and saved again but produced file is not as same as first one.

Input.eml
----------
.......
In-Reply-To: AgriBank 160 Jari 31806 (1382/12/24 11:57) (1)
Content-Type: multipart/mixed; boundary="Nu34pLQ4ZbS3eEaaW8NKHKIqlP=_o5xThD"
MIME-Version: 1.0
Date: Sun, 14 Mar 2004 11:57:29 +0430
This is a multi-part message in MIME format
--Nu34pLQ4ZbS3eEaaW8NKHKIqlP=_o5xThD
......
===============================================================
I runned bellow source :

  with IdMessage1 do begin
    LoadFromFile('input.eml');
    SaveToFile('out.eml');
  end;

and result file is as  out.eml
--------------
..........
In-Reply-To: AgriBank 160 Jari 31806 (1382/12/24 11:57) (1)
Content-Type: multipart/mixed;
boundary="Nu34pLQ4ZbS3eEaaW8NKHKIqlP=_o5xThD";
boundary="WCdCddA64xFIa9Og6SyJokkM=_c1tOgDSn"
MIME-Version: 1.0
Date: Sun, 14 Mar 2004 11:57:29 +0430
This is a multi-part message in MIME format
--WCdCddA64xFIa9Og6SyJokkM=_c1tOgDSn
...........
================================================

as noticed new label for boundries ok but it should delete old one that came
after "content-type" label !!!
it made mail viewer confused and don't show and message.
Thanks

Replies