Mutt e-mail client
Configuration
How To
Exclude his own address when using reply to all :
- Add unset metoo inside configuration file ~/.muttrc :
user@host:~$ echo "unset metoo" >> ~/.muttrc
Enable IDLE :
- Add set imap_idle=yes inside configuration file ~/.muttrc :
user@host:~$ echo "set imap_idle=yes" >> ~/.muttrc
Read receipts :
- Add the filed
Disposition-Notification-To: <myemailaddress@domain>
inside the mail header, (press E to edit mail with headers).
Solve the impossible to save the SSL certificate error :
- Add set ssl_starttls="yes" and set certificate_file="~/.mutt_certificates" inside the configuration file ~/.muttrc :
user@host:~$ echo -e "set imap_idle=yes\nset certificate_file="~/.mutt_certificates"" >> ~/.muttrc
Random signature :
Each day
- Set signature in .muttrc file
set signature="~/.signatures"
- Add your signatures inside .signatures file
- Set a cron file : /etc/cron.d/random_signature
Put every signatures in a .signatures file and each hour, the .signature file will be populated by a random signature
00 * * * * user sort -R /home/user/.signatures | head -n 1 | fold -w 72 -s > /home/user/.signature
Each mail
- Set signture in .muttrc file
set signature="sort -R /home/toi/.signatures | head -n 1 | fold -w 72 -s|"
Some commands
Mail Access |
y |
Print mailboxes |
c |
Change folder : allow to move to another folder |
b |
Bounce-message : re-send mail to another recipient (with the original header) |
Ctrl+t |
Change message type : ex : text/html, text/plain |
Organize mails
-
Move a mail to another directory :
-
Move mails to another directory :
-
; (to point out to mutt that we will work with flagged mails)
Search
In IMAP environment replace ~ by = symbol to enhance search performance.
-
Print only mails from toto@domaine.local :
- ~f toto@domaine.local (from toto@domaine.local)
-
Print only mails from a range of dates :
- ~d 01/01/2018-31/12/2018 (from 01/01/2018 to 31/12/2018)
-
Print only mails from a range of dates and from two differents users :
- (~f toto|~f titi) ~d 01/01/2018-31/12/2018 (from users toto or titi and between 2018/01/01 to 2018-12-31)