Compile Mutt

Thursday, Mar 29, 2018
Linux mutt

I am using mutt as my mail reader and I like to have a rather new version than the one included in LTS linux releases.

Therefore I am compiling my mutt version. I fired up an editor and created a script that does this automatically. Here we go:

#! /bin/bash

MUTT_VERSION=1.9.4
PREFIX="${HOME}/.local/mutt/${MUTT_VERSION}/"

if [ ! -f "${HOME}/tmp/mutt" ]; then
  mkdir -p "${HOME}/tmp/mutt"
fi

cd "${HOME}/tmp/mutt" || exit 1
wget "http://ftp.mutt.org/pub/mutt/mutt-${MUTT_VERSION}.tar.gz"

cd "${HOME}/tmp/mutt" || exit 1
tar xzf mutt-$MUTT_VERSION.tar.gz

sudo apt-get install -y libncursesw5 libncursesw5-dev libsasl2-2 libsasl2-dev libtokyocabinet9 libtokyocabinet-dev libgnutls-dev     libglobus-gssapi-gsi-dev libkrb5-dev

cd "${HOME}/tmp/mutt/mutt-${MUTT_VERSION}" || exit 1

./configure --prefix="${PREFIX}" --with-regex --with-ssl=no --with-sasl --with-gnutls --enable-pop --enable-imap --enable-smtp --with-included-gettext     --with-gss --enable-hcache --enable-sidebar
make
make install