Localized Gmail IMAP Folders

后端 未结 4 1367
天命终不由人
天命终不由人 2020-12-16 14:50

I\'m building a tool that analyzes Gmail specific folders (e.g. \'[Gmail]/All Mail\', \'[Gmail]/Spam\'). It seems that the names are localized with respect to the user loca

4条回答
  •  心在旅途
    2020-12-16 15:16

    Came into this answer today and found out that XLIST in Gmail is now deprecated. The current solution is IMAP LIST Extension for Special-Use Mailboxes, which is supported by Gmail.

    Example LIST output from my Hebrew mailbox:

    '(\\Noselect \\HasChildren) "/" "[Gmail]"',
    '(\\HasNoChildren \\Trash) "/" "[Gmail]/&BdAF6QXkBdQ-"',
    '(\\HasNoChildren \\Sent) "/" "[Gmail]/&BdMF1QXQBeg- &BdkF1QXmBdA-"',
    '(\\HasNoChildren \\Important) "/" "[Gmail]/&BdcF6QXVBdE-"',
    '(\\HasNoChildren \\Drafts) "/" "[Gmail]/&BdgF2QXVBdgF1QXq-"',
    '(\\HasNoChildren \\All) "/" "[Gmail]/&BdsF3A- &BdQF0wXVBdAF6A-"',
    '(\\HasNoChildren \\Flagged) "/" "[Gmail]/&Bd4F4QXVBd4F3w- &BdEF2wXVBdsF0Q-"',
    '(\\HasNoChildren \\Junk) "/" "[Gmail]/&BeEF5AXQBd0-"',
    

提交回复
热议问题