Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: Attachment with ANSI UNIX encoding Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
tliebscher
Newbie
Newbie
Avatar

Joined: 27 December 2007
Location: Germany
Online Status: Offline
Posts: 5
Posted: 27 December 2007 at 6:50am | IP Logged Quote tliebscher

Hi!

I have a problem with an attachment in ANSI UNIX encoding. When I download and save it to my harddisk, all umlaute (ä, ö, ü) get replaced by '?'.

I use the following code:

     MailBee.ImapMail.Imap emailClient = emailClient = new MailBee.ImapMail.Imap();
     emailClient.Connect(emailConfi guration.Server);
     emailClient.Login(emailConfigu ration.User, emailConfiguration.Password);

     if (emailClient.SelectFolder(emailConfiguration.Mailbox))
     {
           if (emailClient.MessageCount > 0)
           {
                message = emailClient.DownloadEntireMessage(1, false);
                MailBee.Mime.Attachment attachment = retVal = currentMail.Attachments[0];
                attachment.SaveToFolder(archiv eDir.FullName, false);
           }
     }

While a line in my original file looks like this:

01000472;01; ;Bäckerei;Lübeck;Knölcke            

It looks like this in the downloaded file:

01000472;01; ;B?ckerei;;L?beck;Kn?lcke       ;      

When I open the original file in Textpad and save it in ANSI PC format, everything works fine.

Any clue what the problem could be?
Back to Top View tliebscher's Profile Search for other posts by tliebscher
 
tliebscher
Newbie
Newbie
Avatar

Joined: 27 December 2007
Location: Germany
Online Status: Offline
Posts: 5
Posted: 27 December 2007 at 6:52am | IP Logged Quote tliebscher

There are 2 copy & paste errors in the code listed above (it's spread over several classes in my application).

Of course it must be:

MailBee.ImapMail.Imap emailClient = new MailBee.ImapMail.Imap();

and

MailBee.Mime.Attachment attachment = currentMail.Attachments[0];
Back to Top View tliebscher's Profile Search for other posts by tliebscher
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 27 December 2007 at 8:07am | IP Logged Quote Alex

Could you please send us the problem message as .EML file so that we would be able to check it?

You can save it as .EML in most email clients (for instance, Outlook Express supports this).

Please use our Request Support Form to submit the email message in question.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
tliebscher
Newbie
Newbie
Avatar

Joined: 27 December 2007
Location: Germany
Online Status: Offline
Posts: 5
Posted: 28 December 2007 at 1:30am | IP Logged Quote tliebscher

Thanks for this quick reply! Shouldn't you guys actually be home with your family celebrating xmas? ;)

I downloaded the latest version of mailbee and now everything works fine.

Thanks for your help. This is really amazing support.

BR
Torsten
Back to Top View tliebscher's Profile Search for other posts by tliebscher
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide