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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 783c4b438248f30a833f8ffb0d835d88ae8a099d86038d3a13e363e35d52c72f |
|
MD5 | ac547df3e2764b2c0cc9ea929893ca77 |
|
BLAKE2b-256 | 16b38ff662c555d9217471536c03dab7b1c7d4a3f6b6ecde8d4498f3f8fbcd6f |
Close
Hashes for attachment_downloader-1.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | edfa2c02d98745923251a5e2d8f1012db64f33103f0129b73de71a18462f8827 |
|
MD5 | 40392181c8b7fed5680631de7b206e07 |
|
BLAKE2b-256 | 7043a3be84af8467c207a43a19c70130c6c0111ac206776389d1d71fd8e204c8 |