Simple tool for downloading email attachments for all emails in a given folder using an IMAP client.
Project description
Simple tool for downloading email attachments for all emails in a given folder using an IMAP client.
Install:
$ pip install attachment-downloader
Usage:
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 --subject-regex=SUBJECT_REGEX Regex that the subject must match against --date-after=DATE_AFTER Select messages after this date --date-before=DATE_BEFORE Select messages before this date --filename-template=FILENAME_TEMPLATE Attachment filename (jinja2) template. --output=DOWNLOAD_FOLDER Output directory for attachment download --delete Delete downloaded emails from Mailbox --delete-copy-folder=DELETE_COPY_FOLDER IMAP folder to copy emails to before deleting them
Example:
$ attachment-downloader --host imap.example.com --username mail@example.com --password pa55word \\ --imap-folder invoices --output ~/Downloads
For full instructions and documentation visit: https://github.com/jamesridgway/attachment-downloader
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for attachment-downloader-1.2.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1d3894609f27840613c53cd9d55000859ff6735d516d15d4b1a4115a0276a84 |
|
MD5 | 870df7ba1643f4a5b3c57e0590eb16b9 |
|
BLAKE2b-256 | 1f6f2b07c1ccc7d009a039fbf7cb1173ae06f0d58ba9266a7c1494a6826ea9b0 |
Close
Hashes for attachment_downloader-1.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 331972ea14d6e0b810d4483026e819042f07697794f85718493078cd539032cb |
|
MD5 | 3ec4fd61342e366648cd3c15863a3cbf |
|
BLAKE2b-256 | 20107ab444c8793a7d54434de63f4b59cff5bd291c836778ca6d70163e194839 |