Export mail from Gmail

南楼画角 提交于 2020-01-21 07:06:26

问题


At one point it was possible to use scripts like libgmail and gmail.py (can't post more than one hyperlink) to export mail from Gmail accounts. Both of those seem to not work anymore — I can't even log in with them. I assume it's because there's been some changes in Gmail. Is there still any way to do this?


回答1:


Gmail supports IMAP and POP, which are common protocols for accessing email. You should be able to use use any working IMAP or POP library for Python to download your email. If you want tag/folder information, you'll need to stick to IMAP.




回答2:


As far as I know neither libgmail nor gmail.py are compatible with the current version of Gmail. I use IMAP to download mails from gmail. Python's imaplib module is quite useful for this.

This answer (disclaimer: my answer) to a related question might give you some clues.



来源:https://stackoverflow.com/questions/3592015/export-mail-from-gmail

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!