Skip to main content

Command line utility to clean IMAP folders

Project description

mailbox-cleaner

a simple CLI tool to clean IMAP folders

Latest Release Supported Versions Downloads License CI Code style: black

Installation

To install with pip:

$ pip install -U mailbox-cleaner

After installation the command mailbox-cleaner should be available. You can also just download the mailbox_cleaner.py file and execute it directly.

Usage

To delete emails older than 15 days in the INBOX folder:

mailbox-cleaner imap.example.com me@example.com myPassword -d 15

To delete emails older than 30 days in the Trash folder using a STARTTLS connection to a host with non-standard port:

mailbox-cleaner imap.example.com:9999 me@example.com myPassword -c STARTTLS -f Trash -d 30

To see all available options and more information use:

mailbox-cleaner --help

License

Licensed GPLv3+, see the LICENSE file for details.

Copyright © 2022 Asiel Díaz Benítez.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mailbox_cleaner-0.1.0.tar.gz (17.6 kB view hashes)

Uploaded Source

Built Distribution

mailbox_cleaner-0.1.0-py3-none-any.whl (15.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page