User Tools

Site Tools


applications:mail:mutt

Applications - Mail - Mutt

muttrc

Colors

View HTML e-mail in mutt

Install lynx.

Add to ~/.mailcap:

text/html; lynx -dump -width=78 -nolist %s | sed 's/^ //'; copiousoutput; needsterminal; nametemplate=%s.html

Add to ~/.muttrc:

auto_view text/x-vcard text/html text/enriched

Taken from: Deadlypenguin - Mutt and Lynx

Open IMAPS mailbox

Add to ~/.muttrc:

set spoolfile="imaps://IMAP_SERVEER_FQDN/INBOX"
set imap_user="USERNAME"
set folder="imaps://MAP_SERVEER_FQDN/"

Source: Mutt and IMAP

Sort mailbox from newest to oldest

Add to ~/.muttrc:

set sort=reverse-date-sent

Compile on macOS

Tested on macOS Tahoe 25.6.

This assumes:

  • You don't have or want to install mutt via MacPorts or Homebrew.
  • You know how or already have installed the Xcode Command line tools. (Hint: type 'clang' in a Terminal and follow the prompts.)
  • You keep up with new mutt releases and downlooad, compile, and install the new version in the same way to replace your current (vulnerable) version.
  • mutt should be installed in ~/mutt.

Do the following:

  1. Install the Xcode Command Line tools.
  2. Download the mutt .tar.gz file from http://www.mutt.org/download.html.
  3. Open Terminal.
  4. Create and change to a directory to extract the mutt .tar.gz to:
    mkdir ~/compile
    cd ~/compile
  5. Extract the mutt .gar.gz:
    tar xzvf ~/Downloads/mutt-2.4.1.tar.gz
  6. Change to the extracted mutt directory:
    cd mutt-2.4.1
  7. Clone the https://github.com/jeroen/apple-libressl-sdk repository to get the missing LibreSSL header files for SSL/TLS (and IMAPS) support:
    git clone git clone https://github.com/jeroen/apple-libressl-sdk
  8. Configure mutt with:
    1. Base location the mutt directory in your home directory (~/mutt)
    2. The mailbox file in your home directory.
    3. IMAP support
    4. SMTP support
    5. SSL/TLS support using the apple-libressl-sdk directory
      ./configure --prefix=$HOME/mutt --with-homespool=mutt/mailbox --enable-imap --enable-smtp --with-ssl=apple-libressl-sdk
  9. Compile and install with:
    make install
  10. Create a ~/.muttrc file with the desired settings.
  11. Start mutt from a terminal with:
    ~/mutt/bin/mutt
applications/mail/mutt.txt · Last modified: by bas

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki