Skip to main content

MHI

mhi is a commandline style mailreader in the tradition of mh and nmh, but mutated to support IMAP.

Build Status

Why?

One thing that IMAP provides is the ability for multiple clients to access the same mail store. Graphical clients are all well and good, but sometimes a reversion to the commandline is necessary. Neither mh nor nmh will talk to an IMAP server (mh's original semantics, which nmh duplicates, rely on messages not auto-renumbering, as they do in IMAP folders), so I had to write my own client. Python's imaplib made this easy.

How?

As of v0.6.5 MHI is available as a PyPI package (pipx install mhi) The same version also incorporates the old mkLinks wrapper-script functionality via:

  python -m mhi.mklinks <destdir>

.mhirc

.mhirc is an ini-style config file (parsed with configobj). Useful keys:

  • connection - an imap[s]://[username[:password]]@host[:port]/path url string that specifies how to connect to the imap server

  • connection_passwd - the password to use when connection. To avoid putting the password in plaintext in this file, if the string is surrounded by backticks (`), it will be executed as a shell script whose stdout will be used as the password.

  • folder_prefix - the prefix to add to your IMAP folders

  • comp_template - the template put into your editor when you use comp to write new mail

  • repl_template - the template put into your editor when you reply to a message

TODO:

  • use click - but would require new commands?
  • more help - should be self-documenting

Licensing information is in the LICENSE file. (short version: GPLv3 or CCBYSA)

Release files for mhi 0.8.6

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

Source distribution (sdist)

Source distribution for mhi 0.8.6
File Size Uploaded
mhi-0.8.6.tar.gz 55.2 kB Details

Built distribution (wheel)

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

Total release size: 96.7 kB

Release files / mhi-0.8.6.tar.gz

Download URL mhi-0.8.6.tar.gz
Size 55.2 kB
Tags Source
SHA-256 checksum
How to use checksums
65c79df4f6352974dd9793c8cae362d72c329dfbe3d7eeb18c6e46e887bb028f
BLAKE2b-256 checksum
How to use checksums
1e5d2721f41cc6940f65de8312a6fecc2287cf09e4f74605c07088b31bd758f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / mhi-0.8.6-py3-none-any.whl

Download URL mhi-0.8.6-py3-none-any.whl
Size 41.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0dea021b76a915239f3d0673dc24508d0f6cc9725f0c6d4889e145932601c9de
BLAKE2b-256 checksum
How to use checksums
aa106ed239429b73e60b64527b2655532f80375a9724f3c5ed98543d50f163f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.8.6 This release

2 release files

0.8.5

2 release files

0.8.4

2 release files

0.8.3

2 release files

0.8.2

1 release file

0.8.1

1 release file

0.8.0

1 release file

0.7.0

2 release files

0.6.7

4 release files

0.6.6

4 release files

0.6.5

4 release files

0.6.3

4 release files

0.6.2

4 release files

0.6.1

4 release files

0.6

4 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