Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个脚本,可以将 Gmail 中的所有电子邮件导出为文本文件。
它适用于您选择文件夹的这一行:
mail.select("inbox")
但我不确定 Gmail 存档的名称是什么,所有电子邮件都存储在其中。我试过存档和所有邮件和东西,但没有运气。
有谁知道正确的名字吗?
解决了。
它是[Gmail]/All Mail,或者,如果您像我一样是 Gmail UK 用户,它可能是[Google Mail]/All Mail,因为由于商标问题,Gmail 在英国曾经被称为 Google Mail。
[Gmail]/All Mail
[Google Mail]/All Mail
如果您这样做是为了一般用途,我建议您测试以查看是否[Gmail]/All Mail有效(最常见),如果不测试[Google Mail]/All Mail.
最后一个非常适合我。
这:
https://github.com/goerz/gmail_archive.py/blob/master/libgmail/lgconstants.py
似乎表明它是all.
all