Skip to main content

Mailcat: a console viewer for MIME mail files

Mailcat outputs mail files to the text console. It works just like cat:

$ mailcat example.eml
Subject: Plushy
From:    Jan <jan@catnip.nowhere>
To:      Marta <marta@purrrrr.xyz>
Date:    Fri, 21 Aug 2015 23:10:43 +0200

Hi Marta,

Here are the pictures of my cat, Plushy. She's so cute!!!

Attachments:
[1] Plushy1.jpg (image/jpeg)
[2] Plushy2.jpg (image/jpeg)
[3] Plushy3.jpg (image/jpeg)

Download and install

Install Mailcat with pip:

pip install mailcat

To use Mailcat with less, add this to ~/.lessfilter:

#!/bin/sh

case "$1" in
    *.eml|*.mbx|*.mbox)
        mailcat --color=always "$1"
        exit 0
        ;;
esac

exit 1

and make ~/.lessfilter executable:

chmod +x ~/.lessfilter

The source code is available from the Git repository at Bitbucket.

Mailcat is written in Python and licensed under GNU GPL version 3 or any later version.

Version history

0.2

(released on October 3, 2015)

  • Added support for mbox files.

  • Added support for reading from stdin.

  • Fixed UnicodeEncodeError in Python 2 when stdout is a file or a pipe.

0.1

(released on August 21, 2015)

  • Added support for reading .eml files (plain text MIME messages).

  • Added formatting of HTML bodies as plain text or raw HTML.

  • Added attachment listing.

  • Added color highlighting.

Metadata

Release files for mailcat 0.2

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

Source distribution (sdist)

Source distribution for mailcat 0.2
File Size Uploaded Provenance
mailcat-0.2.tar.gz 6.8 kB Without provenance Details

Release files / mailcat-0.2.tar.gz

Download URL mailcat-0.2.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7f21e08452bf4998ee1433b2dfe41d62f47ca2db5ffe8b1343b9c112128f2312
BLAKE2b-256 checksum
How to use checksums
c10c975f52693d82aa56748643798e200a7881b97c207f09b27e91282e02bcf1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for mailcat 0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2 This release

1 release file No provenance

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