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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac0b3651a2424d1e175b693716dfdedad38711571187aa88058123a2baab1b4a |
|
MD5 | 35e5955a5bb48b769bf50ee841b72595 |
|
BLAKE2b-256 | 0ec05eb0a33f5a431c3d36f7f1f5f02be1cc1d6e1aacfc6948f1170b561cedd5 |
Close
Hashes for attachment_downloader-1.2.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf3e9b986d740d19d72bc0cbf9150f9f51980d6009addcaf04bbca8843c42922 |
|
MD5 | dbd392895ab8678be1a1770ba8707989 |
|
BLAKE2b-256 | 9bc50cbc5bb3d8d2b473d295eca8ed804423dad024c2084205846c7c121c6dbf |