Converting message from EML to MSG format

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jonny Au

    #1

    Converting message from EML to MSG format

    Hi everyone,

    I have a problem about email message format converting.
    I want to write a program in VB.NET to convert the EML format email message
    to MSG format, does anyone knows how to do it?
    If you know it you can send me a message to ckjonny5@hotmai l.com

    Thanks at all.
    Jonny


  • Rick Rothstein [MVP - Visual Basic]

    #2
    Re: Converting message from EML to MSG format

    Wow! With all of those newsgroups you posted to and not one of them was
    the correct one.

    Almost everybody in this newsgroup (comp.lang.visu al.basic) is using VB6
    or lower. While you may get a stray answer to VB.NET (including VB2003
    and VB2005 which has dropped .NET from its name) questions here, you
    should ask them in newsgroups devoted exclusively to .NET programming.
    Look for newsgroups with either the word "dotnet" or "vsnet" in their
    name.

    For the microsoft news server, try these newsgroups for Visual Basic
    ..NET related questions...

    microsoft.publi c.dotnet.langua ges.vb
    microsoft.publi c.dotnet.langua ges.vb.upgrade
    microsoft.publi c.dotnet.langua ges.vb.controls
    microsoft.publi c.dotnet.langua ges.vb.data

    And these for more general .NET questions

    microsoft.publi c.dotnet.genera l
    microsoft.publi c.vsnet.general

    Note: There are many other .NET newgroups (use the first three "fields"
    from the last two as templates when searching for them), but the above
    ones should get you started.

    Rick



    "Jonny Au" <jonny@wanadoo. nl> wrote in message
    news:42f1028b$0 $19718$dbd4b001 @news.wanadoo.n l...[color=blue]
    > Hi everyone,
    >
    > I have a problem about email message format converting.
    > I want to write a program in VB.NET to convert the EML format email[/color]
    message[color=blue]
    > to MSG format, does anyone knows how to do it?
    > If you know it you can send me a message to ckjonny5@hotmai l.com
    >
    > Thanks at all.
    > Jonny
    >
    >[/color]


    Comment

    • Phlip

      #3
      Re: Converting message from EML to MSG format

      Please don't crosspost. You will get a good answer posting to the narrowest
      one or two groups possible.

      The programming and extreme-programming groups are about general philosphy
      and methodology, respectively.

      Jonny Au wrote:
      [color=blue]
      > I have a problem about email message format converting.
      > I want to write a program in VB.NET to convert the EML format email
      > message to MSG format, does anyone knows how to do it?[/color]

      What did Google tell you about these two formats? Did you find a document
      declaring their standard anywhere?
      [color=blue]
      > If you know it you can send me a message to ckjonny5@hotmai l.com[/color]

      Post here read here. This is not a private tech support service, and if we
      reply on USENET others will review our answer. And we will leave an archive
      for Google.

      --
      Phlip
      http://www.greencheese.org/ZeekLand <-- NOT a blog!!!



      Comment

      • Dan Mitchell

        #4
        Re: Converting message from EML to MSG format

        "Jonny Au" <jonny@wanadoo. nl> wrote in
        news:42f1028b$0 $19718$dbd4b001 @news.wanadoo.n l:[color=blue]
        > I have a problem about email message format converting.
        > I want to write a program in VB.NET to convert the EML format email
        > message to MSG format, does anyone knows how to do it?
        > If you know it you can send me a message to ckjonny5@hotmai l.com[/color]

        I've trimmed the list of newsgroups to the most relevant ones.

        .eml format looks like it's just MIME, so any MIME library should do
        the trick; maybe .net has one, I'm not sure, but I've heard people
        recommend mime++ for that sort of stuff in the past.

        As for saving in .MSG format, see

        Microsoft Support is here to help you with Microsoft products. Find how-to articles, videos, and training for Microsoft Copilot, Microsoft 365, Windows 11, Surface, and more.


        That's extended MAPI code, which doesn't really play nicely with .NET:



        so you can either try wrestling with interop to pull it in, or put that
        code into a DLL and call the DLL from your .NET code or somesuch. Yet
        another option (though probably a nastier one) would be to parse the EML
        message into chunks, use OOM code to populate a message that way, and
        then tell the OOM to save the message in .MSG format. I'm not 100% sure
        that's all possible, but it may be easier if you can't use C++.

        -- dan

        Comment

        Working...