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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11b3fab135668b087f6113839d9f379dce8c356a1c2604369804318fc98d2bf6 |
|
MD5 | 2d48a0050a6369da1a4b75787937376e |
|
BLAKE2b-256 | c5ce84f89482656f6f8bdbf8f90398326d90951f8bff05d7ebeca1458adf9992 |
Close
Hashes for attachment_downloader-1.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a76fc4243695035172ad2a438902040b00a7a6df1ac98a14baed6deff7711a45 |
|
MD5 | a84420059738e81698a3f86c630cbe62 |
|
BLAKE2b-256 | 7be834c062d1a32eb2aa563ba92e126d3783c64ff9b30a751e393a1a7b200690 |