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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09a5e104bc0f0b8166dafa1497957d65d74c5d5b510d6306fc73a0540f591c22 |
|
MD5 | 925a10eee8e8e5aa4af874113b190760 |
|
BLAKE2b-256 | 0c02817876d6a31a0f073eb934a0fe7ffc50e8e54440dff82994cd11a989b769 |
Close
Hashes for attachment_downloader-1.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45971cd75188841cae04cdcd1d4df4ed96810dc82ee14a767a10e92d5e335918 |
|
MD5 | ad4450ceb1d0aac03e1d8c7ad282d719 |
|
BLAKE2b-256 | 95780a7da86a2cc0713b81c559b365bf04c6f01178fc5cfd73a4eed86e305325 |