Skip to main content

IMAPArchiver

Have you ever found yourself in a situation where your IMAP mailbox is getting a bit too full, and you're concerned about losing important data?

The IMAPArchiver is here to ensure that no email goes missing. By exporting your emails to a local folder, you can safely backup your email data and store it in cloud storage solutions.

This enables easy access to old documents and provides a reliable backup solution for your important emails.

Features

  • Export emails from an IMAP mailbox to a local folder.
  • Filter emails based on the specified year.
  • Support for SSL connection.
  • Option to skip specific IMAP folders.
  • Verbose logging and debug mode for detailed output.

Usage

Getting started is easy! Simply install IMAPArvchiver and configure the script with your IMAP server details and desired options, and run it. Your emails will be safely exported to the specified local folder, ready for backup or archiving.

Install:

pip install imaparchiver

Run IMAPArchiver with appropriate command-line arguments:

  • --server -s: IMAP server address (required).
  • --user -u: Username for IMAP authentication (required).
  • --password -p: Password for IMAP authentication (required).
  • --destination -d: Export folder path where emails will be saved (required).
  • --year -y: Year to filter emails (optional).
  • --ssl: Use SSL connection (optional).
  • --port: Port number of the IMAP server (optional).
  • --skip: Comma-separated list of IMAP folders to skip (optional).
  • --verbose: Enable verbose logging (optional).
  • --debug: Print debug output (optional).

Example:

imaparchiver -s imap.example.com -u john@example.com -p secret -d /path/to/export_folder -y 2022 --ssl --skip "Spam,Trash" --verbose

Contribute

I welcome contributions from the community! If you've found a bug, have a feature request, or want to contribute code improvements, please submit an issue or pull request to this repository.

  • Fork this repository.
  • Create a branch: git checkout -b development.
  • Make your changes and commit them: git commit -m '<commit_message>'
  • Push to the original branch: git push origin flojud/IMAPArchiver
  • Create the pull request.

Keep your mailbox organized and your data safe with the IMAPArchiver. Happy exporting!

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for IMAPArchiver 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for IMAPArchiver 1.0.0
File Size Uploaded
IMAPArchiver-1.0.0.tar.gz 8.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for IMAPArchiver 1.0.0
File Interpreter ABI Platform
IMAPArchiver-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.5 kB

Release files / IMAPArchiver-1.0.0.tar.gz

Download URL IMAPArchiver-1.0.0.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0a83feb48de19df451597b257bf41e682e2d2dfa421f16f72c8507865f4d8d75
BLAKE2b-256 checksum
How to use checksums
9c0c1089d3e3c90b126314d716532707cbcf522d376a727e4b09515c1b00bc1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / IMAPArchiver-1.0.0-py3-none-any.whl

Download URL IMAPArchiver-1.0.0-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd2e18622f4b7dd731efa6ab11b7cfa0e30445e31250716bb5fea11f585d8051
BLAKE2b-256 checksum
How to use checksums
8e42adfe8e156b024758924026d5ff62f534aa40fe36768c2813d5259e57b614
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page