从不同的语言获取[Gmail]所有邮件 [英] Getting [Gmail] All Mail from different languages

查看:55
本文介绍了从不同的语言获取[Gmail]所有邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用python imaplib从[Gmail]所有邮件文件夹中读取Gmail邮件.

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

对于大多数帐户,所有邮件文件夹都被命名为"[Gmail]所有邮件".但是,有几个帐户的名称为:"[[Gmail]/& BBIEQQRP-& BD8EPgRHBEIEMA-"

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.

有人能识别编码吗?

是否可以找出所有邮件"文件夹是哪个文件夹?

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?

推荐答案

GMail支持XLIST函数来获取文件夹的本地化名称.

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

请参见 Gmail IMAP扩展

这篇关于从不同的语言获取[Gmail]所有邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆