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.1.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72d9bd7654e38d127328da70e3e4e38a632a5a7bf11f1f6f40ae5d07bee5f6cd |
|
MD5 | 23914ee99cf76802245d8ed7c5fcacef |
|
BLAKE2b-256 | 2774efd71839150ad5dfe96fc78f6cd06c5b4fa04077f7e2dcdb16d2b1f3e964 |
Close
Hashes for attachment_downloader-1.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2aa7cdaff43305399b3f3ba5003a09aac8fd538ea24bb48feeedeaa7b84337d |
|
MD5 | e456e8901ce52ecde318640f4b6ce612 |
|
BLAKE2b-256 | 8fb490596c357624bd17eb6a306fee2c55d3bc61eca0c86685a36ccd5c78acda |