Sign UpSign Up   Sign InSign In Welcome Guest,
Live Chat Live Chat

Mail Attachment Names contains Question Marks instead of umlauts

Last post 07-09-2009, 1:33 AM by gradma. 20 replies.
Page 2 of 2 (21 items)   < Previous 1 2
Sort Posts: Previous Next
  •  05-28-2009, 5:54 AM 181599 in reply to 181591

    Re: Mail Attachment Names contains Question Marks instead of umlauts

    okay fine thank you, I hope you can find the same problem as I have and find a solution for that
     
  •  06-09-2009, 1:32 AM 183023 in reply to 181599

    Re: Mail Attachment Names contains Question Marks instead of umlauts

    are there new information?

     
  •  06-23-2009, 9:46 AM 185109 in reply to 183023

    Re: Mail Attachment Names contains Question Marks instead of umlauts

    what's on?? can you solve this problem or not?
     
  •  06-23-2009, 3:49 PM 185169 in reply to 185109

    Re: Mail Attachment Names contains Question Marks instead of umlauts .NET

    Hi,

    Sorry for replying late.

    I tested with console and dll project types, but there were no issues. Attachments were being saved correctly including the special characters.

    I just tested with SharePoint too by uploading the file to the document library and accessing using MailMessage.Load(stream) method, but again no issues.

    Could you please make sure that the dll that is being referenced in your project is exactly same as I sent you earlier. I would recommend to delete the reference and add again the dll from my folder.

    Most probably, it seems the dll version issue, because I have tested on 32/64 bit and .net 2.0/3.5 frameworks, but no issues found.


    Best Regards,
    Saqib Razzaq
    Support Developer, Aspose Sialkot Team
    http://www.aspose.com
    Your File Format Experts
     
  •  07-08-2009, 1:47 AM 187406 in reply to 185169

    Re: Mail Attachment Names contains Question Marks instead of umlauts

    Hi,

    thanks for your reply. I don't think, that's the problem is the DLL file.

    In the ViewMsg Solution of you, I tested the Email with special characters in the attachments name with an email which I drag out from outlook to the desktop.

    This works fine with the characters.

    If I try to load the email, which I have saved with the code below, the characters won't be displayed as I want (same problem as I explained):

    Here is the Code:

       SPFile datei = properties.ListItem.File;

       byte[] fileBuffer = datei.OpenBinary();

       string path = "c:\\temp\\Emailkategorisierung\\Emails\\" + datei.Name;

       FileStream stream = new FileStream(path, FileMode.Create);

       stream.Write(fileBuffer, 0, fileBuffer.Length);

       stream.Close();

       MapiMessage email = MapiMessage.FromFile("c:\\temp\\Emailkategorisierung\\Emails\\" + datei.Name);

    This MapiMessage don't work with the characters. You told me, that you have tested it with a class library with Sharepoint.

    Can you please post your code, how you have load the file to the MapiMessage from Sharepoint?

    I think this could solve my problem. I think the problem is anywhere in Sharepoint or how Sharepoint save the emails, I'm not sure.

    Thanks a lot

     

     

    ****UPDATE****

    I have tested following secaniro:

    I uploaded a email with sharepoint (Upload file - choose file - click upload and then the file is in the sharepoint) and after that I downloaded this email again (rigt click - save as) and then try to read the attachments with the ViewMsg solution.

    THIS WORKS!!!

     

    When I upload a Email from Outlook to Sharepoint programmatically (Outlook Addin in C#, a simply save as function) then the attachment names won't be display correct (but only in the aspose mailmessage/mapimessage). If I open this email with outlook, there's no problem or something else.

    Same problem if I open any email in outlook, go to File - Save As - http://sharepoint/docbib/test.msg and download this file back to desktop and test it with view msg. So the problem isn't from my outlook addin, the problem must be on your class library or outlook?!?

    Can you check how you load the attachment namens in the mapimessage class? maybe there is another way ??

     

     
  •  07-09-2009, 1:33 AM 187653 in reply to 187406

    Re: Mail Attachment Names contains Question Marks instead of umlauts

    PROBLEM SOLVED

    For all who want to now where the problem was:

    In Outlook you can save emails as a MSG file, but there are 2 different types of MSG files.

    There is a "normal" MSG type and there is a "Unicode" MSG file, so you can choose how you want to store your emails.

    If you drag and drop your email from outlook to the desktop, then the email will save as "normal" MSG, if you go to "file"-->"save as" and choose the unicode msg file, then the mapi class can read the attachmentnames correctly.

    Thanks for your support!!!

     

     
Page 2 of 2 (21 items)   < Previous 1 2
View as RSS news feed in XML