| Author |  | 
      
        | developer007 Newbie
 
  
 
 Joined: 04 May 2012
 Online Status: Offline
 Posts: 2
 | 
          Hi there.
           | Posted: 04 May 2012 at 6:27am | IP Logged |   |  
           | 
 |  I've got an error trying to select a folder with IMAP component. I realized that the error had only occurred when folder name contained Russian characters. For instance "Входящие" - folder name. I select folder by folder.Name.
 Here is a log:
 [17:23:57.00] [INFO] Will download list of sub-folders of "" folder matching "" condition.
 [17:23:57.08] [SEND] MBN00000003 XLIST "" "*"\r\n
 [17:23:57.28] [RECV] * XLIST (\HasNoChildren \Inbox) "/" "&BBIERQQ+BDQETwRJBDgENQ-"\r\n [Total 64 bytes received.]
 [17:23:57.29] [RECV] * XLIST (\HasNoChildren) "/" "Personal"\r\n [Total 41 bytes received.]
 [17:23:57.29] [RECV] * XLIST (\HasNoChildren) "/" "Receipts"\r\n [Total 41 bytes received.]
 [17:23:57.29] [RECV] * XLIST (\HasNoChildren) "/" "Travel"\r\n [Total 39 bytes received.]
 [17:23:57.29] [RECV] * XLIST (\HasNoChildren) "/" "Work"\r\n [Total 37 bytes received.]
 [17:23:57.29] [RECV] * XLIST (\Noselect \HasChildren) "/" "[Gmail]"\r\n [Total 48 bytes received.]
 [17:23:57.29] [RECV] * XLIST (\HasNoChildren \Important) "/" "[Gmail]/&BBIEMAQ2BD0EPgQ1-"\r\n [Total 70 bytes received.]
 [17:23:57.29] [RECV] * XLIST (\HasNoChildren \AllMail) "/" "[Gmail]/&BBIEQQRP- &BD8EPgRHBEIEMA-"\r\n [Total 77 bytes received.]
 [17:23:57.29] [RECV] * XLIST (\HasChildren \HasNoChildren \Trash) "/" "[Gmail]/&BBoEPgRABDcEOAQ9BDA-"\r\n [Total 82 bytes received.]
 [17:23:57.30] [RECV] * XLIST (\HasNoChildren \Sent) "/" "[Gmail]/&BB4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-"\r\n [Total 81 bytes received.]
 [17:23:57.30] [RECV] * XLIST (\HasNoChildren \Starred) "/" "[Gmail]/&BB8EPgQ8BDUERwQ1BD0EPQRLBDU-"\r\n [Total 79 bytes received.]
 [17:23:57.30] [RECV] * XLIST (\HasNoChildren \Spam) "/" "[Gmail]/&BCEEPwQwBDw-"\r\n [Total 60 bytes received.]
 [17:23:57.30] [RECV] * XLIST (\HasNoChildren \Drafts) "/" "[Gmail]/&BCcENQRABD0EPgQyBDgEOgQ4-"\r\n [Total 75 bytes received.]
 [17:23:57.31] [RECV] MBN00000003 OK Success\r\n [Total 24 bytes received.]
 [17:23:57.31] [INFO] Folder list downloaded.
 [17:23:57.32] [INFO] Select folder "Входящие".
 [17:23:57.32] [SEND] MBN00000004 EXAMINE "&BBIERQQ+BDQETwRJBDgENQ-"\r\n
 [17:23:57.53] [RECV] MBN00000004 NO [NONEXISTENT] Unknown Mailbox: &BBIERQQ+BDQETwRJBDgENQ- (Failure)\r\n [Total 82 bytes received.]
 [17:23:57.58] [INFO] Error: The server has responded with negative reply. The server responded: MBN00000004 NO [NONEXISTENT] Unknown Mailbox: &BBIERQQ+BDQETwRJBDgENQ- (Failure).
 
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          As far as we can tell, that's GMail-specific behavior; Inbox folder can only be requested as Inbox, despite that it has a localized name reflected in XLIST output.
           | Posted: 04 May 2012 at 6:34am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Alex AfterLogic Support
 
  
  
 Joined: 19 November 2003
 Online Status: Offline
 Posts: 2207
 | 
          To find out that the folder is inbox, you can check its flags. The inbox has FolderFlags.Inbox set.
           | Posted: 04 May 2012 at 6:57am | IP Logged |   |  
           | 
 |  
 Alternatively, you can just set imap.UseXList=false before connecting to the server. You'll have English name for inbox then.
 
 Regards,
 Alex
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | developer007 Newbie
 
  
 
 Joined: 04 May 2012
 Online Status: Offline
 Posts: 2
 | 
          Thanks for fast replies. Comparison a folder flags with FolderFlags.Inbox does work with Gmail but doesn't with some other imap services, like Yandex.ru. I had to convert flags to string and checked if it contained "inbox" in lowercase.
           | Posted: 05 May 2012 at 4:12am | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |     | 
       
       
        |  |