How to find Gmail mailboxes in other languages
I need to select the 'Sent' and 'Spam' folders in Gmail, but I have an accou开发者_运维技巧nt that does not work. I've found out later that the folders are in non-English language, but it doesn't seem to represent the unicode characters of those language either. Does anybody know how to find out which one is the 'Sent' or 'Spam' folder of a Gmail account?
You should use XLIST command, Google and Apple developed a special IMAP command XLIST to address this issue.
IMAP XLIST command returns a list of folders and their well-know flags (\Inbox, \Drafts, \Trash, \Sent, \Spam).
Localized gmail imap folders
see the link below for help:
Encode::IMAPUTF7
For searching in Spam folfer (no matter the language of your account) write "is:spam" (without the quotes) in the search box. For searching Sent e-mails, just write "is:sent". You have more conbinations, such as "is:unread" (my favourite), "label:work", etc.
Hope it hepls.
精彩评论