nmh

nmh (new message handler), is a powerful electronic mail handling system. Following the Unix Philosophy, nmh is made up by a collection of simple programs each of which has a single purpose. This architecture allows the user to intersperse nmh with other commands at the shell prompt and to write scripts tailored to their needs.

Installing

Install nmhAUR or nmh-gitAUR from the AUR.

Optionally install a utility to handle IMAP or POP, for example fdm, or .

Also optionally install or another utility for sending mail.

Configuring

nmh is extensively configurable in a variety of ways. The primary of these is the file.

The syntax for is unusual. For example, nmh will refuse to run if there are blank lines in the file. Read the mh_profile(5) page for more.

By default, nmh uses ~/Mail as your mail folder. To change this, set :

 Path: path/to/mail/folder

Set inbox (relative to Path):

 Inbox: inbox

Also by default, nmh populates the mail folder with the command, which incorporates mail from the user's mail drop ().

If you have a non-standard mail drop path, you can set an environment variable , or set MailDrop in :

 MailDrop: /path/to/mail-drop

or set inc:

 inc: -file /path/to/mail-drop

Nmh is also capable of retrieving mail via POP. A basic POP setup (see for more):

 inc: -host example.com -user username -sasl

Usage

To become familiar with basic nmh usage, learn and practice the following commands:

Command Description
inc Incorporate new mail.
scan Scan the contents of the current folder.
folder/folders Change the current folder or list folders and their contents.
show Display messages.
comp Compose a new message.
repl Reply to a message.
refile Move a message to another folder.

Frontends

While nmh is fully usable from the command-line, several console-based and graphical user interfaces exist. Also, some common mail tools interact smoothly with the mh format.

MH-specific Frontends

  • MH-V, a console interface to mh/nmh with vi- keybindings.
  • MH-E, a console interface to mh/nmh with Emacs keybindings.
  • exmh, a TK-based mh GUI.

MH-compatible Frontends

  • Popular MUA mutt understands mh format. (Use set mbox_type = mh in your muttrc.)
  • Full-text mail indexer and search utility mairix can read and write in mh format. (Use mh=path/to/mh/folder and in .mairixrc)
gollark: Great!
gollark: Oh, you mean the BAD LyricLy?
gollark: Only passive components, though? Really?
gollark: This is fine.
gollark: Actually, you're superconductive.

See also

This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.