What is mh?

mh, standing for "message handling," is a powerful, flexible, and highly configurable email system available for Unix-like operating systems. Unlike more monolithic Mail User Agents (MUAs) like mail or mutt, mh consists of a collection of individual command-line programs, each dedicated to a specific email-related task. This modular design makes mh scriptable and customizable, allowing users to tailor their email workflow to their exact needs.

Here are some key aspects of mh:

  • Modular Design: This is the core strength. Each command does one thing well. Examples include inc (incorporating new mail), show (displaying messages), comp (composing messages), send (sending messages), repl (replying to messages), rmm (removing messages), and scan (scanning message headers). See also Command%20Line%20Interface
  • Message Storage: mh stores each email message as a separate file in a directory (called a "folder"). This is in contrast to some MUAs that store all messages in a single mailbox file. This simplifies backup, manipulation, and even integration with other tools.
  • Folders: Messages are organized into folders. The default folder is usually named "inbox". Users can create and manage multiple folders to categorize their email. Related subject: File%20Management
  • Message Numbers: Within each folder, messages are identified by unique numbers.
  • Configuration: mh is highly configurable through environment variables and configuration files, allowing users to customize everything from the editor used for composing messages to the format of displayed headers.
  • Scriptability: Because mh programs are command-line tools, they can be easily integrated into shell scripts and other programs, enabling powerful automation.
  • Portability: As a Unix-based system, mh is highly portable across different Unix-like operating systems.
  • Learning Curve: mh can have a steeper learning curve than some other MUAs due to its command-line interface and the need to understand its underlying principles. However, the power and flexibility it offers are well worth the effort for many users. See also User%20Experience
  • Security: As with any email system, security is important. Care must be taken to configure mh properly to prevent unauthorized access to messages. Important subject: Email%20Security

In summary, mh is a powerful and versatile email system that provides users with a high degree of control over their email environment. Its modular design, scriptability, and configurability make it a popular choice for experienced Unix users who want to tailor their email workflow to their specific needs.