使用IMAP客户端下载给定文件夹中所有电子邮件的电子邮件附件的简单工具。
attachment-downloader的Python项目详细描述
为给定的所有电子邮件下载电子邮件附件的简单工具 使用IMAP客户端的文件夹。
安装:
$ pip install attachment-downloader
用法:
Usage: attachment-downloader [options] Options: -h, --help show this help message and exit --host=HOST IMAP Host --username=USERNAME IMAP Username --password=PASSWORD IMAP Password --imap-folder=IMAP_FOLDER IMAP Folder to extract attachments from --filename-template=FILENAME_TEMPLATE Attachment filename (jinja2) template. --output=DOWNLOAD_FOLDER Output directory for attachment download --delete Delete E-Mail from Mailbox if attachment was downloaded
示例:
$ attachment-downloader --host imap.example.com --username mail@example.com --password pa55word \\ --imap-folder invoices --output ~/Downloads
有关完整说明和文档,请访问:https://github.com/jamesridgway/attachment-downloader