Menu

SharpMimeTools - email file as attachment

fmtp
2007-08-16
2013-04-22
  • fmtp

    fmtp - 2007-08-16

    Hi,

    i'm using the "SharpMessage" class to decode emails and i have the following problem:
    if the email has another email attached (.eml file), the attached email is not recognized as an attachment by the "SharpMessage class", the message is parsed and appended to the main message.
    How can i overcome this?

    Thanks.

     
    • Angel Marin

      Angel Marin - 2007-08-16

      You can't ... or you couldn't :) I've committed in r284 support for SharpDecodeOptions.NotRecursiveRfc822 that should do it when passed to an appropriate constructor.

      You can grab it form svn repository[1] or wait for tonight's snapshot build[2].

      [1]<http://anmar.eu.org/projects/sharpmimetools/development.html>
      [2]<http://anmar.eu.org/projects/sharpmimetools/files/daily/>

       
      • Angel Marin

        Angel Marin - 2007-08-21

        Nightly builds[1] had stopped working. It should be fixed now.

        [1]<http://anmar.eu.org/projects/sharpmimetools/files/daily/> 

         
    • fmtp

      fmtp - 2007-08-21

      Hi, thanks for your feedback.

      I tried your changes, i used the SharpDecodeOptions.NotRecursiveRfc822 option in the SharpMessage constructor,
      but i found another problem:
      when treating the mail message as an attachment, the "DumpBody" method is called for the mail message part
      and causes an exception because the body is null...   

       
      • Angel Marin

        Angel Marin - 2007-08-21

        Can you send me a zipped raw test email that causes this problem?

         
      • Angel Marin

        Angel Marin - 2007-08-22

        It should be fixed in r286 (and in tonight's build). I shouldn't code while traveling :)

         
    • fmtp

      fmtp - 2007-08-23

      It's working, thanks once again :)

       

Log in to post a comment.

MongoDB Logo MongoDB