Loading ...
Sorry, an error occurred while loading the content.

Bugs in TMailMessage2000.

Expand Messages
  • Zhentao Song
    Hi, who can fix the first bug? or ideal There are Bugs in TMailMessage2000. Version 1.10.1 1. I use POP3 to get a Mail from Mail Server and put it in
    Message 1 of 8 , Sep 7, 2005
    • 0 Attachment




      Hi,

      who can fix the first bug? or ideal

      There are Bugs in TMailMessage2000.   Version 1.10.1 

      1.  I use POP3 to get a Mail from Mail Server and put it in TMailMessage2000.

          That works fein, but if that mail contains  an Attachment, and the Attachment is also in a Mail Format, like .msg File. Then in the TMailMessage2000 there is only a File named file_0,   you can not open this file with aother Mail Client Program like Outlook or Outlook Express.! The same Problem if Attachment is a Groupwise Mail or Luto Notes Mail. Some time the Attachment is lost. 

      2.  A Mail has Plaintext Body, and contains a THML File as Attachment. I have Problem with  such Mail,  if I put this Mail in  TMailMessage2000,  then the contents of the Attachment is put in the Property TextHTML, and show in the HTML Body, there is not Attachment in TMailMessage2000.

      I fixed this bug with Source Code blow:

          function GetText(Info: String): Boolean;
          var
            Buffer: PChar;

          begin

            Result := False;
            if (FTextPlainPart = nil) and (FTextHTMLPart = nil) then //Z.Song 06.09.2005 Attachment should not in Body.

            begin
            if (FTextPlainPart = nil) and (Info = _T_P! ) then
            begin

          ;     if Part.Decode and (Part.Decoded.Size > 0) then
              begin

                FTextPlainPart := Part;

                GetMem(Buffer, Part.FDecoded.Size+1);
                StrLCopy(Buffer, Part.FDecoded.Memory, Part.FDecoded.Size);
                Buffer[Part.FDecoded.Size] := #0;
                FTextPlain.SetText(Buffer);
                FreeMem(Buffer);

                Result := True;
              end;
            end;

            if (FTextHTMLPart = nil) and (Info = _T_H) then
            begin

       &! nbsp;      if Part.Decode and (Part.Decoded.Size > 0) then
              begin

                FTextHTMLPart := Part;

                GetMem(Buffer, Part.FDecoded.Size+1);
                StrLCopy(Buffer, Part.FDecoded.Memory, Part.FDecoded.Size);
                Buffer[Part.FDecoded.Size] := #0;
                FTextHTML.SetText(Buffer);
                FreeMem(Buffer);

                Result := True;
              end;
            end;
            end;
          end;

        begin
       

      3 problems with address! es like '"Name, Firstname" <na me@...>' (changed GetDestAddress, GetDestName).

      function TMailMessage2000.GetDestAddress(Field: String; const Index: Integer): String;
      var
        Address, Dests: String;
        Count, Loop: Integer;
        Quote, Clammy: Boolean;
      begin
        Dests := TrimSpace(GetLabelValue(Field)); 
        Count := 0;
        Address := '';
        Quote := False;
        Clammy := False;
        for Loop := 1 to Length(Dests) do
        begin
          if Dests[Loop] = '"' then
            Quote := not Quote;
          if Dests[Loop] = '(' then         //Z.Song 07.09.05
            Clammy := True;
          if Dests[Loop] = ')' then         //Z.Song 07.09.05
            Clammy := False;
          if (not Quote) and (not Clammy) and (Dests[Loo! p] in [',', ';']) then
            Inc(Count);
          if Count > Index then
            Break;
          if Count = Index then
          begin
            if Quote then                  //Z.Song 18.03.05
              Address := Address + Dests[Loop]
            else if (not Clammy) and (not (Dests[Loop] in [',', ';', '<', '>', '[', ']', '(', ')', #32])) then
              Address := Address + Dests[Loop];
            if (Dests[Loop] = '<') and (not Quote) then
              Address := '';
            if (Dests[Loop] = '>') and (not Quote) then
              break;
        &n! bsp; end;
        end;
        Result := TrimSpace(Address);
      en d;

      function TMailMessage2000.GetDestName(Field: String; const Index: Integer): String;
      var
        Dests: String;
        Loop: Integer;
        Count: Integer;
        Quote: Boolean;
        Name: String;

      begin

        Dests := TrimSpace(GetLabelValue(Field));
        Count := 0;
        Name := '';
        Quote := False;

        for Loop := 1 to Length(Dests) do
        begin

          if Dests[Loop] = '"' then
          begin

            Quote := not Quote;
          end
          else
          begin

            if (not Quote) and (Dests[Loop] in [',', ';']) then Inc(Count);

            if Count > Index then
            begin

              Name := '';
              Break;
         &nbs! p;  end;

            if Count = Index then
            begin

              if (Dests[Loop] = '<') and (not Quote) then
              begin

                Break;
              end
              else
              begin
                if (Dests[Loop] = ')') and (not Quote) then     //Z.Song 06.09.2005
                  break;                                        //Z.Song 06.09.2005

          ! ;      if (Dests[Loop] = '(') and (not Quote) then     //Z.Song 06.09.2005
                  Name := ''                                    //Z.Song 06.09.2005

                else if Quote or (not (Dests[Loop] in [',', ';'])) then
                  Name := Name + Dests[Loop];
              end;
            end;
          end;

          if Loop = Length(Dests) then Name := '';
        end;

        Result := DecodeLine7Bit(TrimSpace(Name));
      end;

      who can fix the first bug? or ideal

       give me suggestions, advices, I can do it myself.

      Kind regards

      Zhentao Song

       

       

        

       

           





      Mit der Gruppen-SMS von WEB.DE FreeMail können Sie eine SMS an alle    
      Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179   
         
        
    • Kunikazu Okada
      Hello, Zhentao. who can fix the first bug? or ideal There are Bugs in TMailMessage2000. Version 1.10.1 if that mail contains an Attachment, and the Attachment
      Message 2 of 8 , Sep 8, 2005
      • 0 Attachment
        Hello, Zhentao.

        who can fix the first bug? or ideal
        There are Bugs in TMailMessage2000. Version 1.10.1
        if that mail contains an Attachment, and the Attachment is also in a Mail Format, like .msg File.
        Then in the TMailMessage2000 there is only a File named file_0, you can not open this file with aother Mail Client Program like Outlook or Outlook Express.
        The same Problem if Attachment is a Groupwise Mail or Luto Notes Mail. Some time the Attachment is lost.

        I'll try. but I need the data first.
        Will you forward me the error mail source
        as it is just retrieved from the POP server ?

        /// Kunikazu Okada ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Tokyo, Japan ___________________________________________///
      • Zhentao Song
        Hi Okada, ... Ok, See my Attachment for your test. This email in Attachment is send from Outlook to Exchange Server. I use POP3 to get the email from Exchange
        Message 3 of 8 , Sep 9, 2005
        • 0 Attachment

          Hi Okada,

          >I'll try. but I need the data first.

          >Will you forward me the error mail source
          >as it is just retrieved from the POP server ?

          Ok, See my Attachment for your test. 

          This email in Attachment is send from Outlook to Exchange Server.

          I use POP3 to get the email from Exchange Server.

          And save it in file RowMailFromExchangeServer.txt.

          File RowMailFromExchangeServer.txt contents Row Mail.

          You can use methode Loadfrom to load this in TMailMessage2000.(exsample: TMailMessage2000.LoadFromFile( RowMailFromExchangeServer.txt ) )

          Then try to get the attachment.

          You see the attachmen named file_0, but it should be OutlookMail.msg.

          Try to save the attachment file_0 in your local system.

          And try to open it with Outlook, and it failed.

           

          Thanks

          Zhentao Song

           

           

           


          tmail2000@yahoogroups.com schrieb am 09.09.05 06:12:15:


          Hello, Zhentao.

          who can fix the first bug? or ideal
          There are Bugs in TMailMessage2000. Version 1.10.1
          if that mail contains an Attachment, and the Attachment is also in a Mail Format, like .msg File.
          Then in the TMailMessage2000 there is only a File named file_0, you can not open this file with aother Mail Client Program like Outlook or Outlook Express.
          The same Problem if Attachment is a Groupwise Mail or Luto Notes Mail. Some time the Attachment is lost.

          I'll try. but I need the data first.
          Will you forward me the error mail source
          as it is just retrieved from the POP server ?

          /// ! Kunikazu Okada ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          Tokyo, Japa n ___________________________________________///



          ------------------------ Yahoo! Groups Sponsor --------------------~-->
          Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
          http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/i7folB/TM
          --------------------------------------------------------------------~->

          =============================================================

          The group's home page is here:
          http://groups.yahoo.com/group/tmail2000/

          To post a message:
          send email to: tmail2000@yahoogroups.com
          or go here: http://groups.yahoo.com/group/tmail2000/post

          To modify your subcription options (e.g. stop receiving discussions)
          go to:
          http://groups.yahoo.com/mygroups/tmail2000/join or
          http://groups.yahoo.com/convwiz

          To subscribe/unsubscribe, send blank email to:
          tmail2000-subscribe@yahoogroups.com
          tmail2000-unsubscribe@yahoogroups.com

          To talk only with the moderator, d! eveloper of TMail2000, write email to:
          mycelo@...

          Please expect 1-2 weeks for my response.

          PLEASE POST IN ENGLISH!

          Yahoo! Groups Links

          <*> To visit your group on the web, go to:
          http://groups.yahoo.com/group/tmail2000/

          <*> To unsubscribe from this group, send an email to:
          tmail2000-unsubscribe@yahoogroups.com

          <*> Your use of Yahoo! Groups is subject to:
          http://docs.yahoo.com/info/terms/





          Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach!    
          Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=021131 >  
        • Zhentao Song
          Hi, my Bugfix for the second Bug below dosn t work korrectly. with my Code I have problem, if the Email has HTML body. some one has idea? Thanks Zhentao
          Message 4 of 8 , Sep 13, 2005
          • 0 Attachment

            Hi,

            my Bugfix for the second Bug below dosn't work korrectly.

            with my Code I have problem, if the Email has HTML body.

            some one has idea?

             

            Thanks

            Zhentao

             

            "Zhentao Song" <z.song@...> schrieb am 07.09.05 15:24:14:



            Hi,

            who can fix the first bug? or idea

            There are Bugs in TMailMessage2000.   Version 1.10.1 

            1.  I use POP3 to get a Mail from Mail Server and put it in TMailMessage2000.

                That works fein, but! if that mail contains  an Attachment, and the Attachment is also in a Mail Format, like .msg File. Then in the TMailMessage2000 there is only a File named file_0,   you can not open this file with aother Mail Client Program like Outlook or Outlook Express. The same Problem if Attachment is a Groupwise Mail or Luto Notes Mail. Some time the Attachment is lost. 

            2.  A Mail has Plaintext Body, and contains a THML File as Attachment. I have Problem with  such Mail,  if I put this Mail in  TMailMessage2000,  then the contents of the Attachment is put in the Property TextHTML, and show in the HTML Body, there is not Attachment in TMailMessage2000.

            I fixed this bug with Source Code blow:

                function GetText(Info: String): Boolean;
                var
                  Buffer: PChar;

                begin

             &! nbsp;    Result := False;
                &n bsp; if (FTextPlainPart = nil) and (FTextHTMLPart = nil) then //Z.Song 06.09.2005 Attachment should not in Body.

                  begin
                  if (FTextPlainPart = nil) and (Info = _T_P) then
                  begin

                    if Part.Decode and (Part.Decoded.Size > 0) then
                    begin

                      FTextPlainPart := Part;

                      GetMem(Buffer, Part.FDecoded.Size+1);
                      StrLCopy(Buffer, Part.FDecoded.Memory, Part.FDecoded.Size);
                      Buffer[Part.FDecoded.Size] := #0;
                      FTextPlain.SetText(Buffer);
                      FreeMem(Buffer);

            !

                      Result := True;
                    end;
                  end;

                  if (FTextHTMLPart = nil) and (Info = _T_H) then
                  begin

                    if Part.Decode and (Part.Decoded.Size > 0) then
                    begin

                      FTextHTMLPart := Part;

                      GetMem(Buffer, Part.FDecoded.Size+1);
                      StrLCopy(Buffer, Part.FDecoded.Memory, Part.FDecoded.Size);
                      Buffer[Part.FDecoded.Size] := #0;
                      FTextHTML.SetText(Buffer);
                      FreeMem(Buf! fer);

                      Res ult := True;
                    end;
                  end;
                  end;
                end;

              begin
             

            3 problems with addresses like '"Name, Firstname" <name@...>' (changed GetDestAddress, GetDestName).

            function TMailMessage2000.GetDestAddress(Field: String; const Index: Integer): String;
            var
              Address, Dests: String;
              Count, Loop: Integer;
              Quote, Clammy: Boolean;
            begin
              Dests := TrimSpace(GetLabelValue(Field)); 
              Count := 0;
              Address := '';
              Quote := False;
              Clammy := False;
              for Loop := 1 to Length(Dests) do
              begin
                if Dests[Loop] = '"' then
                  Quote := not Quote;
                if Dests[Loop] = '(' then        ! //Z.Song 07.09.05
                  Clammy := True;
                if Dests[Loop] = ')' then         //Z.Song 07.09.05
                  Clammy := False;
                if (not Quote) and (not Clammy) and (Dests[Loop] in [',', ';']) then
                  Inc(Count);
                if Count > Index then
                  Break;
                if Count = Index then
                begin
                  if Quote then                  //Z.Song 18.03.05
                    Address := Address + Dests[Loop]
                  else if (not Clammy) and (not (Dests[Loop] in [',', ';', '<', '>', '[', ']', '(', ')', #32])) then
                    Address := Address + Dest! s[Loop];
                  if (Dests[Loop] = '<') a nd (not Quote) then
                    Address := '';
                  if (Dests[Loop] = '>') and (not Quote) then
                    break;
                end;
              end;
              Result := TrimSpace(Address);
            end;

            function TMailMessage2000.GetDestName(Field: String; const Index: Integer): String;
            var
              Dests: String;
              Loop: Integer;
              Count: Integer;
              Quote: Boolean;
              Name: String;

            begin

              Dests := TrimSpace(GetLabelValue(Field));
              Count := 0;
              Name := '';
              Quote := False;

              for Loop := 1 to Length(Dests) do
              begin

                if Dests[Loop] = '"' then
                begin

                  Quote := not Quote;
                end
                else
                begin

                  if ! (not Quote) and (Dests[Loop] in [',', ';']) then Inc(Count);

                  if Count > Index then
                  begin

                    Name := '';
                    Break;
                  end;

                  if Count = Index then
                  begin

                    if (Dests[Loop] = '<') and (not Quote) then
                    begin

                      Break;
                    end
                    else
                    begin
                      if (Dests[Loop] = ')') and (not Quote) then     //Z.Song 06.09.2005
                     &! nbsp;  break;        &nbs p;                               //Z.Song 06.09.2005

                      if (Dests[Loop] = '(') and (not Quote) then     //Z.Song 06.09.2005
                        Name := ''                                    //Z.Song 06.09.2005

                      else if Quote or (not (Dests[Loop] in [',', ';'])) then
                        Name := Name + Dests[Loop];
                    end;
                  end;
               ! end;

                if Loop = Length(Dests) then Name := '';
              end;

              Result := DecodeLine7Bit(TrimSpace(Name));
            end;

            who can fix the first bug? or idea

             give me suggestions, advices, I can do it myself.

            Kind regards

            Zhentao Song

             

             

              

             

                 





            Verschicken Sie romantische, coole und witzige Bilder per SMS!   
            Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193  
          • Kunikazu Okada
            Hello, Ok, See my Attachment for your test. This email in Attachment is send from Outlook to Exchange Server. Well, I think that Exchange Server is responsible
            Message 5 of 8 , Sep 13, 2005
            • 0 Attachment
              Hello,

              Ok, See my Attachment for your test.
              This email in Attachment is send from Outlook to Exchange Server.

              Well, I think that Exchange Server is responsible for this error.

              Look at the summarised data below , especially around the boundary delimiters.

              boundary="----_=_NextPart_000_01C5B525.93768484" ----(A) boundary for the OUTER message
              boundary="----_=_NextPart_002_01C5B525.93768484" ----(B) boundary for the INNER message

              So this message clearly violates the rule which RFC2046 says:
              "The boundary delimiter MUST NOT appear inside any of the encapsulated parts,"

              ======below is the summary of the structure of the email you sent me with some comments((A)(B))===

              From: "Song, Zhentao" Zhentao.Song@...
              To: "Song, Zhentao" Zhentao.Song@...
              Subject: Email for TMailMessage2000 component.
              Date: Fri, 9 Sep 2005 12:02:24 +0200
              MIME-Version: 1.0
              Content-Type: multipart/mixed;
              boundary="----_=_NextPart_000_01C5B525.93768484"----(A0) boundary for the OUTER message

              This message is in MIME format. Since your mail reader does not understand
              this format, some or all of this message may not be legible.

              ------_=_NextPart_000_01C5B525.93768484 ----(A1) ---- begin 1st part (text/plain part) of the OUTER message
              Content-Type: text/plain

              this is the main body .

              ------_=_NextPart_000_01C5B525.93768484 ----(A2) begin 2nd part (rfc822 part) of the OUTER message
              Content-Type: message/rfc822
              Content-Description: Email for TMailMessage2000 component.

              Message-ID: 62AF2E1C424CAC4A8BA08BB459C385350A941BA9@...
              From: "Song, Zhentao" Zhentao.Song@...
              To: "Song, Zhentao" Zhentao.Song@...
              Subject: Email for TMailMessage2000 component.
              Date: Fri, 9 Sep 2005 11:51:10 +0200
              MIME-Version: 1.0
              Content-Type: multipart/mixed;
              boundary="----_=_NextPart_002_01C5B525.93768484" ----(B0) boundary for the INNER message

              This is a MIME multipart message.

              ------_=_NextPart_002_01C5B525.93768484 ----(B1) begin 2nd part (text/plain part) of the INNER message
              Content-Type: text/plain

              this is the body part of the attached rfc822 message

              ------_=_NextPart_002_01C5B525.93768484 ----(B2) begin 2nd part (msword part) of the INNER message
              Content-Type: application/msword;
              name="WordAttachment.doc"
              Content-Transfer-Encoding: base64
              Content-Disposition: attachment;
              filename="WordAttachment.doc"

              0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAABAAAALgAAAAAAAAAA
              EAAAMAAAAAEAAAD+////AAAAAC8AAAD/////////////////////////////////////////////
              ///////////////////(base64 encoded data)......
              AAMAAAABAAAAwAEAAAcAAAAAAAAAQAAAAAEAAAD0AAAAAAAAgPwAAAACAAAABAEAAAMAAAAMAQAA
              BAAAAA==

              ------_=_NextPart_002_01C5B525.93768484-- ----(B3) end of the 2nd part (msword part) of the INNER message

              ------_=_NextPart_000_01C5B525.93768484-- ----(A3) end of the 2nd part (rfc822 part) of the OUTER message
            • Kunikazu Okada
              Zhentao Song z.song@web.de schrieb am 07.09.05 15:24:14: 2. A Mail has Plaintext Body, and contains a THML File as Attachment. I have Problem with such Mail,
              Message 6 of 8 , Sep 13, 2005
              • 0 Attachment
                "Zhentao Song" z.song@... schrieb am 07.09.05 15:24:14:
                2. A Mail has Plaintext Body, and contains a THML File as Attachment. I have Problem with such Mail, if I put this Mail in TMailMessage2000,
                then the contents of the Attachment is put in the Property TextHTML, and show in the HTML Body, there is not Attachment in TMailMessage2000.

                Mail2000's current implementation
                treats the first text/html part found in the message as TextHTML.

                And this is your expectation:
                If Message.ContentType = 'text/html' treat the first text/html part as TextHTML.
                If Message.ContentType = 'multipart/alternative' treat the first text/html part in the children of the message part.


                ##WARNING ### I have never tested this code .#####

                if (FTextHTMLPart = nil) and (Info = _T_H) then
                begin

                if Part.Decode and (Part.Decoded.Size 0) then
                begin
                if (Part = Self) or ((Part.Parent=Self) and (Self.GetAttachInfo = _M_A)) then begin ---Something like this !

                FTextHTMLPart := Part;

                GetMem(Buffer, Part.FDecoded.Size+1);
                StrLCopy(Buffer, Part.FDecoded.Memory, Part.FDecoded.Size);
                Buffer[Part.FDecoded.Size] := #0;
                FTextHTML.SetText(Buffer);
                FreeMem(Buffer);

                end;

                Result := True;
                end;
                end;
              • Zhentao Song
                Hi Okada, thanks for your help. with your Source Code below.(Part.Parent : Part doesn t have Parent ) if (Part = Self) or ((Part.Parent=Self) and
                Message 7 of 8 , Sep 15, 2005
                • 0 Attachment

                  Hi Okada,

                  thanks for your help.

                  with your Source Code below.(Part.Parent :   Part doesn't have Parent  )

                  if (Part = Self) or ((Part.Parent=Self) and (Self.GetAttachInfo = _M_A)) then begin ---Something like this !
                   

                  I changed your Code to

                  if (Part = Self) or (Self.GetAttachInfo = _M_A) then begin ---Something like this !

                  Then I have other Problems

                  1. if the Mail  has THML Body and Attachment File, then you have the origin Mail packed in a HTML File als Attachment, and the Body is Plaintext.

                  2. if the Mail has HTML Body and Plaintext Attachment File, then you the Plaintext Attachment in Body, and the origin Mail in a HTML File als Attachment.

                   

                  if I also change this Part below, then I don't have Body, if the origin Mail has HTML Body.  

                   &nbs! p;    if (FTextPlainPart = nil) and (Info = _T_P) then
                        begin

                          if Part.Decode and (Part.Decoded.Size > 0) then
                          begin
                            if (Part = Self) or (LowerCase(Self.GetAttachInfo) = _M_A) then -- Zhentao added
                            begin
                            FTextPlainPart := Part;

                            GetMem(Buffer, Part.FDecoded.Size+1);
                            StrLCopy(Buffer, Part.FDecoded.Memory, Part.FDecoded.Size);
                            Buffer[Part.FDecoded.Size] := #0;
                            FTextPlain.SetText(Buffer);
                       &nb! sp;    FreeMem(Buffer);

                      & nbsp;     Result := True;
                            end;
                          end;
                        end;

                   

                  regards

                   

                   


                  tmail2000@yahoogroups.com schrieb am 14.09.05 04:21:12:



                  "Zhentao Song" z.song@... schrieb am 07.09.05 15:24:14:
                  2. A Mail has Plaintext Body, and contains a THML File as Attachment. I have Problem with such Mail, if I put this Mail in TMailMessage2000,
                  then the contents of the Attachment is put in the Property TextHTML, and show in the HTML Body, there is not Attachment in TMailMessage2000.

                  Mail2000's current implementation
                  treats the first text/html part found in the message as TextHTML.

                  And this is your expectation:
                  If Mess! age.ContentType = 'text/html' treat the first text/html part as TextHTML.
                  If Message.ContentType = 'multipart/alternative' treat the first text/html part in the children of the message part.


                  ##WARNING ### I have never tested this code .#####

                  if (FTextHTMLPart = nil) and (Info = _T_H) then
                  begin

                  if Part.Decode and (Part.Decoded.Size 0) then
                  begin
                  if (Part = Self) or ((Part.Parent=Self) and (Self.GetAttachInfo = _M_A)) then begin ---Something like this !

                  FTextHTMLPart := Part;

                  GetMem(Buffer, Part.FDecoded.Size+1);
                  StrLCopy(Buffer, Part.FDecoded.Memory, Part.FDecoded.Size);
                  Buffer[Part.FDecoded.Size] := #0;
                  FTextHTML.SetText(Buffer);
                  FreeMem(Buffer);

                  end;

                  Result := True;
                  end;
                  end;





                  ------------------------ Yahoo! Groups Sponsor --------------------~-->
                  Fair play? Video games influencing politics. Click and talk back!
                  http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/! i7folB/TM
                  --------------------------------------------------------- -----------~->

                  =============================================================

                  The group's home page is here:
                  http://groups.yahoo.com/group/tmail2000/

                  To post a message:
                  send email to: tmail2000@yahoogroups.com
                  or go here: http://groups.yahoo.com/group/tmail2000/post

                  To modify your subcription options (e.g. stop receiving discussions)
                  go to:
                  http://groups.yahoo.com/mygroups/tmail2000/join or
                  http://groups.yahoo.com/convwiz

                  To subscribe/unsubscribe, send blank email to:
                  tmail2000-subscribe@yahoogroups.com
                  tmail2000-unsubscribe@yahoogroups.com

                  To talk only with the moderator, developer of TMail2000, write email to:
                  mycelo@...

                  Please expect 1-2 weeks for my response.

                  PLEASE POST IN ENGLISH!

                  Yahoo! Groups Links

                  <*> To visit your group on the web, go to:
                  http://groups.yahoo.com/group/tmail2000/

                  <*> To unsubscribe from this group, send an email to:
                  tma! il2000-unsubscribe@yahoogroups.com

                  <*> Your use of Yahoo! Groups is subject to:
                  http://docs.yahoo.com/info/terms/






                  Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach!    
                  Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=021131  
                • Zhentao Song
                  Hi Okada, you can try save the Attachment in a File, and then load this File in MailMessage2000. You see the Attachment ist a correct MIME Format Mail Message.
                  Message 8 of 8 , Sep 15, 2005
                  • 0 Attachment

                    Hi Okada,

                    you can try save the Attachment in a File, and then load this File in MailMessage2000.

                    You see the Attachment ist a correct MIME Format Mail Message.

                     

                    Regars

                    Zhentao

                     

                     


                    tmail2000@yahoogroups.com schrieb am 14.09.05 03:56:05:


                    Hello,

                    Ok, See my Attachment for your test.
                    This email in Attachment is send from Outlook to Exchange Server.

                    Well, I think that Exchange Server is responsible for this error.

                    Look at the summarised data below , especially around the boundary delimiters.

                    boundary="----_=_NextPart_000_01C5B525.93768484" ----(A) boundary for the OUTER message
                    boundary="----_=_NextPart_002_01C5B525.93768484" --! --(B) boundary for the INNER message

                    So this message clearly violates the rule which RFC2046 says:
                    "The boundary delimiter MUST NOT appear inside any of the encapsulated parts,"

                    ======below is the summary of the structure of the email you sent me with some comments((A)(B))===

                    From: "Song, Zhentao" Zhentao.Song@...
                    To: "Song, Zhentao" Zhentao.Song@...
                    Subject: Email for TMailMessage2000 component.
                    Date: Fri, 9 Sep 2005 12:02:24 +0200
                    MIME-Version: 1.0
                    Content-Type: multipart/mixed;
                    boundary="----_=_NextPart_000_01C5B525.93768484"----(A0) boundary for the OUTER message

                    This message is in MIME format. Since your mail reader does not understand
                    this format, some or all of this message may not be legible.

                    ------_=_NextPart_000_01C5B525.93768484 ----(A1) ---- begin 1st part (text/plain part) of the OUTER message
                    Content-Type: text/plain

                    this is the main body .

                    ------_=_NextPart_000_01C5B525.! 93768484 ----(A2) begin 2nd part (rfc822 part) of the OUTER message
                    >Content-Type: message/rfc822
                    Content-Description: Email for TMailMessage2000 component.

                    Message-ID: 62AF2E1C424CAC4A8BA08BB459C385350A941BA9@...
                    From: "Song, Zhentao" Zhentao.Song@...
                    To: "Song, Zhentao" Zhentao.Song@...
                    Subject: Email for TMailMessage2000 component.
                    Date: Fri, 9 Sep 2005 11:51:10 +0200
                    MIME-Version: 1.0
                    Content-Type: multipart/mixed;
                    boundary="----_=_NextPart_002_01C5B525.93768484" ----(B0) boundary for the INNER message

                    This is a MIME multipart message.

                    ------_=_NextPart_002_01C5B525.93768484 ----(B1) begin 2nd part (text/plain part) of the INNER message
                    Content-Type: text/plain

                    this is the body part of the attached rfc822 message

                    ------_=_NextPart_002_01C5B525.93768484 ----(B2) begin 2nd part (msword part) of the INNER message
                    Content-Type: application/msword;
                    name="WordAttachment.doc"
                    Content-Transfer-Encoding: base64
                    Content-Disposition: att! achment;
                    filename="WordAttachment.doc"

                    0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAABAAAALgAAAAAAAAAA
                    EAAAMAAAAAEAAAD+////AAAAAC8AAAD/////////////////////////////////////////////
                    ///////////////////(base64 encoded data)......
                    AAMAAAABAAAAwAEAAAcAAAAAAAAAQAAAAAEAAAD0AAAAAAAAgPwAAAACAAAABAEAAAMAAAAMAQAA
                    BAAAAA==

                    ------_=_NextPart_002_01C5B525.93768484-- ----(B3) end of the 2nd part (msword part) of the INNER message

                    ------_=_NextPart_000_01C5B525.93768484-- ----(A3) end of the 2nd part (rfc822 part) of the OUTER message




                    ------------------------ Yahoo! Groups Sponsor --------------------~-->
                    Most low income households are not online. Help bridge the digital divide today!
                    http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/i7folB/TM
                    --------------------------------------------------------------------~->

                    =============================================================

                    The group's home pag! e is here:
                    http://groups.yahoo.com/group/tmail2000/

                    To post a message:
                    send email to: tmail2000@yahoogroups.com
                    or go here: http://groups.yahoo.com/group/tmail2000/post

                    To modify your subcription options (e.g. stop receiving discussions)
                    go to:
                    http://groups.yahoo.com/mygroups/tmail2000/join or
                    http://groups.yahoo.com/convwiz

                    To subscribe/unsubscribe, send blank email to:
                    tmail2000-subscribe@yahoogroups.com
                    tmail2000-unsubscribe@yahoogroups.com

                    To talk only with the moderator, developer of TMail2000, write email to:
                    mycelo@...

                    Please expect 1-2 weeks for my response.

                    PLEASE POST IN ENGLISH!

                    Yahoo! Groups Links

                    <*> To visit your group on the web, go to:
                    http://groups.yahoo.com/group/tmail2000/

                    <*> To unsubscribe from this group, send an email to:
                    tmail2000-unsubscribe@yahoogroups.com

                    <*> Your use of Yahoo! Groups is subject to:
                    http://docs.yahoo.com/info/terms/





                    Verschicken Sie romantische, coole und witzige Bilder per SMS!   
                    Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193  
                  Your message has been successfully submitted and would be delivered to recipients shortly.