Install Mutt correctly
- Install mutt or neomutt with your favourite package manager:
apt install neomutt
or install from source
git clone https://github.com/neomutt/neomutt
Here are the sample commands to configure and build NeoMutt:
./configure --gnutls --gpgme --gss --sasl --tokyocabinet
make
2. create a muttrc using mutt-wizard
git clone https://github.com/LukeSmithxyz/mutt-wizard
cd mutt-wizard
sudo make install
The mutt-wizard is run with the command mw
. It also installs the mailsync
command. Once everything is setup, you’ll use neomutt
to access your mail.>
mw add
— add a new email accountmw ls
— list existing accountsmw pass
— revise an account’s passwordmw delete
— deleted an added accountmw purge
— delete all accounts and settingsmw cron
— toggle/configure a cronjob to sync mail
3. create mutt mailboxes correctly using maildirmake utility from courier mail server. The individual components can be downloaded here. Most tutorials leave out this part, and so I struggled with a persistent mailbox format error.
mkdir ~/Mail
cd Mail
maildirmake gmail
4. Use pass to initialise and store mailbox passwords
pass pass init <gpgemail>
5. More Information