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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b59207e876aa0e948c6b37e8a641edb1dc187de330528b68162eef152a9a67c9 |
|
MD5 | b2cde93dbaf010518c42baf42497f52c |
|
BLAKE2b-256 | ce950dc3d020fdc3156c3b426ff334c2ca8b7c7c21f3120e0fd9ceb16ad0f08d |
Close
Hashes for attachment_downloader-1.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 829357c1cde62f19777f735a5bc1d7de9bdce4c43e32117246919142c7e8e918 |
|
MD5 | 90985531f9a68add840b1d53b843c66c |
|
BLAKE2b-256 | 7f846ef854639ea371b5c8b0b54eca9eae412eee038b8055e12bb14515d7fb1c |