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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 149e4db7cf30ab9e496b4b633fe861936548e25473d10506f52cb17feb4a35b3 |
|
MD5 | 4de318b1f20e33a0db36acf3505b1e20 |
|
BLAKE2b-256 | eed5b7469e3202a9a3ffaece5c1469af31359026a31c9159dbadf4a845b9cb3c |
Close
Hashes for attachment_downloader-1.2.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7327e017b4ef98047d5cbdede53d8c4ea1676f79b6972270b1c1264995a6020e |
|
MD5 | 8da4fcc6cb6f9fecac4d1ed00769ea6b |
|
BLAKE2b-256 | acd49bc27a96169fd457a05075883be0e746409b37b59545864ff8b09444ca09 |