Author |
|
tliebscher Newbie
Joined: 27 December 2007 Location: Germany
Online Status: Offline Posts: 5
|
Posted: 27 December 2007 at 6:50am | IP Logged
|
|
|
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 |
|
|
tliebscher Newbie
Joined: 27 December 2007 Location: Germany
Online Status: Offline Posts: 5
|
Posted: 27 December 2007 at 6:52am | IP Logged
|
|
|
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 |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 27 December 2007 at 8:07am | IP Logged
|
|
|
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 |
|
|
tliebscher Newbie
Joined: 27 December 2007 Location: Germany
Online Status: Offline Posts: 5
|
Posted: 28 December 2007 at 1:30am | IP Logged
|
|
|
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 |
|
|