How To Install mh-e on Ubuntu 18.04

In this tutorial we learn how to install mh-e on Ubuntu 18.04. mh-e is Emacs interface to the MH mail system

Introduction

In this tutorial we learn how to install mh-e on Ubuntu 18.04.

What is mh-e

mh-e is:

MH-E offers all the functionality of MH, the visual orientation and simplicity of use of a GUI, and full integration with Emacs and XEmacs, including thorough configuration and online help.

MH-E allows one to read and process mail very quickly: many commands are single characters; completion and smart defaults are used for folder names and aliases. With MH-E you compose outgoing messages in Emacs. This is a big plus for Emacs users, but even non-Emacs users have been known to use MH-E after only learning the most basic cursor motion commands.

Additional features include:

  • attractive text rendering with font lock
  • composition and display of MIME body parts
  • display of images and HTML within the Emacs frame
  • folder browsing with speedbar
  • threading
  • ticking messages
  • lightning-fast full-text indexed searches of all of your email
  • virtual folders to view ticked and unseen messages, search results
  • multiple personalities
  • signing and encrypting
  • spam filter interaction
  • XFace, Face, X-Image-URL and picon header field support

MH is Rand’s Mail Handler, whose functionality is available in MH, nmh and GNU mailutils.

This might be the same version as in the emacs23 package, but documentation is included. It also includes contributed files that are not distributed with GNU Emacs:

mh-frame.el - Open MH-E in a separate frame. mh-comp-frame.el - Message composition in a separate frame.

There are three methods to install mh-e on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install mh-e Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install mh-e using apt-get by running the following command:

sudo apt-get -y install mh-e

Install mh-e Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install mh-e using apt by running the following command:

sudo apt -y install mh-e

Install mh-e Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install mh-e using aptitude by running the following command:

sudo aptitude -y install mh-e

How To Uninstall mh-e on Ubuntu 18.04

To uninstall only the mh-e package we can use the following command:

sudo apt-get remove mh-e

Uninstall mh-e And Its Dependencies

To uninstall mh-e and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove mh-e

Remove mh-e Configurations and Data

To remove mh-e configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge mh-e

Remove mh-e configuration, data, and all of its dependencies

We can use the following command to remove mh-e configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge mh-e

References

Summary

In this tutorial we learn how to install mh-e package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.