Liyan Chang
Liyan Chang

Reputation: 8061

Getting [Gmail] All Mail from different languages

I'm using python imaplib to read Gmail messages from the [Gmail] All Mail folder.

For most accounts, the all mail folder is named "[Gmail] All Mail". However, a couple accounts have it as: "[Gmail]/&BBIEQQRP- &BD8EPgRHBEIEMA-"

It seems to be related to an account in a foreign language.

Does anyone recognize the encoding?

Is there a way to figure out which folder is the "All Mail" folder?

Alternatively, is there a systematic way of getting all the possible names of the All Mail folder so I can search for it?

Upvotes: 0

Views: 521

Answers (1)

Max
Max

Reputation: 11000

GMail supports an XLIST function to get the localized name of the folder.

See Gmail IMAP Extensions

Upvotes: 2

Related Questions