Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: Cyrillic folders names Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
indapublic
Newbie
Newbie


Joined: 18 November 2014
Location: Russian Federation
Online Status: Offline
Posts: 8
Posted: 18 November 2014 at 5:45am | IP Logged Quote indapublic

Hello. I have own IMAP server using Dovecot.
I need to receive folders list with messages count.
My code:
Code:
foreach (Folder folder in connection.DownloadFolders())
  try
  {
      FolderStatus status = connection.GetFolderStatus(folder.Name);
      appendLog(folder.Name + ": " + status.UnseenCount + "/" + status.MessageCount);
  }
  catch (Exception exception)
  {
      appendLog(folder.Name + ": " + exception.Message);
  }


It works successfully for latin (also arabian and japanese) names. But I will receive exception if folder name contains cyrillic.

Output:
Quote:

INBOX: 2/30
Drafts: 0/0
Sent: 0/6
Spam: 0/0
Trash: 0/4
Sent Messages: 0/7
Archive: 0/19
Deleted Messages: 0/0
Junk: 0/0
[Airmail]: 0/0
[Airmail]/To Do: 0/0
[Airmail]/Memo: 0/0
[Airmail]/Done: 0/0
Тестовая: 0/0
Тестовая/Подтестовая: 0/0
Тестовая/Подтестовая/עובדים מאושר: 0/0
Тестовая/Подтестовая/ディ: 0/0
Раз: The server has responded with negative reply. The server responded: MBN00000020 NO Mailbox doesn't exist: &BCAEMAQ3-.
Раз/Два: The server has responded with negative reply. The server responded: MBN00000021 NO Mailbox doesn't exist: &BCAEMAQ3-/&BBQEMgQw-.
Пример: The server has responded with negative reply. The server responded: MBN00000022 NO Mailbox doesn't exist: &BB8EQAQ4BDwENQRA-.
Пример/ПримерПодпример: The server has responded with negative reply. The server responded: MBN00000023 NO Mailbox doesn't exist: &BB8EQAQ4BDwENQRA-/&BB8EQAQ4BDwENQRABB8EPgQ0BD8EQAQ4BDwENQRA-.
Пример/ПримерПодпример/一方で: The server has responded with negative reply. The server responded: MBN00000024 NO Mailbox doesn't exist: &BB8EQAQ4BDwENQRA-/&BB8EQAQ4BDwENQRABB8EPgQ0BD8EQAQ4BDwENQRA-/&TgBluTBn-.
Вася: The server has responded with negative reply. The server responded: MBN00000025 NO Mailbox doesn't exist: &BBIEMARBBE8-.
Вася/Привет: The server has responded with negative reply. The server responded: MBN00000026 NO Mailbox doesn't exist: &BBIEMARBBE8-/&BB8EQAQ4BDIENQRC-.
Вася/Привет/КагДила: The server has responded with negative reply. The server responded: MBN00000027 NO Mailbox doesn't exist: &BBIEMARBBE8-/&BB8EQAQ4BDIENQRC-/&BBoEMAQzBBQEOAQ7BDA-.
====================================


What can be a reason? Thank you in advance
Back to Top View indapublic's Profile Search for other posts by indapublic
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 18 November 2014 at 5:51am | IP Logged Quote Alex

Please post the log output of DownloadFolders. This will show which names the folders actually have on the mail server.

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


Joined: 18 November 2014
Location: Russian Federation
Online Status: Offline
Posts: 8
Posted: 18 November 2014 at 6:16am | IP Logged Quote indapublic

Only folder names

Code:

folder.Name + " \t\t " + folder.RawName


Quote:

INBOX            INBOX
Drafts            Drafts
Sent            Sent
Spam            Spam
Trash            Trash
Sent Messages            Sent Messages
Archive            Archive
Deleted Messages            Deleted Messages
Junk            Junk
[Airmail]            [Airmail]
[Airmail]/To Do            [Airmail]/To Do
[Airmail]/Memo            [Airmail]/Memo
[Airmail]/Done            [Airmail]/Done
Тестовая            &BCIENQRBBEIEPgQyBDAETw-
Тестовая/Подтестовая            &BCIENQRBBEIEPgQyBDAETw-/&BB8EPgQ0BEIENQRBBEIEPgQyBDAETw-
Тестовая/Подтестовая/עובדים מאושרים של רשויות מס            &BCIENQRBBEIEPgQyBDAETw-/&BB8EPgQ0BEIENQRBBEIEPgQyBDAETw-/&BeIF1QXRBdMF2QXd- &Bd4F0AXVBekF6AXZBd0- &BekF3A- &BegF6QXVBdkF1QXq- &Bd4F4Q-
Тестовая/Подтестовая/ディック            &BCIENQRBBEIEPgQyBDAETw-/&BB8EPgQ0BEIENQRBBEIEPgQyBDAETw-/&MMcwozDDMK8-
Раз            &BCAEMAQ3-
Раз/Два            &BCAEMAQ3-/&BBQEMgQw-
Пример            &BB8EQAQ4BDwENQRA-
Пример/ПримерПодпример            &BB8EQAQ4BDwENQRA-/&BB8EQAQ4BDwENQRABB8EPgQ0BD8EQAQ4BDwENQRA-
Пример/ПримерПодпример/一方で            &BB8EQAQ4BDwENQRA-/&BB8EQAQ4BDwENQRABB8EPgQ0BD8EQAQ4BDwENQRA-/&TgBluTBn-
Вася            &BBIEMARBBE8-
Вася/Привет            &BBIEMARBBE8-/&BB8EQAQ4BDIENQRC-
Вася/Привет/КагДила            &BBIEMARBBE8-/&BB8EQAQ4BDIENQRC-/&BBoEMAQzBBQEOAQ7BDA-


But you can see them in first post
Back to Top View indapublic's Profile Search for other posts by indapublic
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 18 November 2014 at 7:01am | IP Logged Quote Alex

Thank you.

And you have no problems with these folders using other IMAP clients, correct? Also, does .SelectFolder method produce the same results?

If both are YES, please provide a test account to let us check this. You can use Helpdesk for that.

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


Joined: 18 November 2014
Location: Russian Federation
Online Status: Offline
Posts: 8
Posted: 18 November 2014 at 6:59pm | IP Logged Quote indapublic

Oh! We founded the problem. It was mail backend's bug.
Thank you very much, Alex!
Back to Top View indapublic's Profile Search for other posts by indapublic
 

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