Skip to main content

📧 CLI to deduplicate mails from mail boxes

Project description

Mail Deduplicate

Last release Python versions Downloads Unittests status Coverage status Documentation status DOI

What is Mail Deduplicate?

Provides the mdedup CLI, an utility to deduplicate mails from a set of boxes.

Mail Deduplicate

Features

  • Duplicate detection based on cherry-picked and normalized mail headers.
  • Fetch mails from multiple sources.
  • Reads and writes to mbox, maildir, babyl, mh and mmdf formats.
  • Deduplication strategies based on size, content, timestamp, file path or random choice.
  • Copy, move or delete the resulting set of duplicates.
  • Dry-run mode.
  • Protection against false-positives with safety checks on size and content differences.
  • Supports macOS, Linux and Windows.
  • Standalone executables for Linux, macOS and Windows.
  • Shell auto-completion for Bash, Zsh and Fish.

Installation

All installation methods are available in the documentation. Below are the most popular ones:

Try it now

uv is the fastest way to run mdedup on any platform, thanks to its uvx command:

$ uvx --from mail-deduplicate -- mdedup

macOS

mdedup is part of the official Homebrew default tap, so you can install it with:

$ brew install mail-deduplicate

Executables

Standalone binaries of mdedup's latest version are available as direct downloads for several platforms and architectures:

Platform arm64 x86_64
Linux Download mdedup-linux-arm64.bin Download mdedup-linux-x64.bin
macOS Download mdedup-macos-arm64.bin Download mdedup-macos-x64.bin
Windows Download mdedup-windows-arm64.exe Download mdedup-windows-x64.exe

Quickstart

[!WARNING] Performance and memory usage: mdedup implementation is quite naive and everything resides in memory.

If this is good enough for a volume of a couple of gigabytes, the more emails mdedup try to parse, the closer you'll reach the memory limits of your machine. In which case mdedup will exit abruptly, zapped by the OOM killer of your OS. Of course your mileage may vary depending on your hardware.

You can influence implementation of this feature with pull requests, purchasing business support 🤝 and sponsorship 🫶.

Example

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

mail_deduplicate-9.0.0.tar.gz (39.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mail_deduplicate-9.0.0-py3-none-any.whl (40.6 kB view details)

Uploaded Python 3

File details

Details for the file mail_deduplicate-9.0.0.tar.gz.

File metadata

  • Download URL: mail_deduplicate-9.0.0.tar.gz
  • Upload date:
  • Size: 39.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mail_deduplicate-9.0.0.tar.gz
Algorithm Hash digest
SHA256 86d6d116b0d07a0308c03f74b4f138df2db221c72ca8bb9e9922010570bea5a0
MD5 39238873e83339dbf80c0f0860c40ef1
BLAKE2b-256 eb557c0403d149046cbdfcaebe2299454d0bc4d33e6ac41f8651a8cc9fbe48d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for mail_deduplicate-9.0.0.tar.gz:

Publisher: release.yaml on kdeldycke/mail-deduplicate

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mail_deduplicate-9.0.0-py3-none-any.whl.

File metadata

  • Download URL: mail_deduplicate-9.0.0-py3-none-any.whl
  • Upload date:
  • Size: 40.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mail_deduplicate-9.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc462fac332d4ddc200d8a296479eeb0fada9b2bf7095c41a789b9ffb68c8144
MD5 939b61ff573e3fc8fbf72b7c1737ceb9
BLAKE2b-256 c55b098b3e5e3af97e7ac27aa41f20bc79290a7620e4a3550cab087ce71a4902

See more details on using hashes here.

Provenance

The following attestation bundles were made for mail_deduplicate-9.0.0-py3-none-any.whl:

Publisher: release.yaml on kdeldycke/mail-deduplicate

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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