dotfiles/mutt/.mutt/accounts/fastmail
Sanchayan Maity c547cfc5d5 mutt: Enable signing for sanchayanmaity.net account
We use hooks to selectively enable signing and use a different signature
when signing.
2022-12-16 17:43:29 +05:30

31 lines
1.1 KiB
Text

# vim: syntax=muttrc
set from = "Sanchayan Maity <sanchayan@sanchayanmaity.net>"
set sendmail = "/usr/bin/msmtp -a fastmail"
set mbox = "+fastmail/Archive"
set postponed = "+fastmail/drafts"
set record = "+fastmail/Sent"
set signature = "~/.mutt/signed-signature"
color status green default
macro index D \
"<save-message>+fastmail/Trash<enter>" \
"move message to the trash"
macro index S \
"<save-message>+fastmail/Spam<enter>" \
"mark message as spam"
# Binding 'gi' will alias 'g'
bind index g noop
macro index gi "<change-folder>=fastmail/Inbox<enter>" "Go to Inbox"
macro index gf "<change-folder>=fastmail/FreedesktopGitlab<enter>" "Go to freedesktop gitlab"
macro index gg "<change-folder>=fastmail/gstreamer<enter>" "Go to gstreamer"
macro index gp "<change-folder>=fastmail/pulseaudio<enter>" "Go to pulseaudio"
macro index gs "<change-folder>=fastmail/Sent<enter>" "Go to Sent"
# See send-hook and patterns here http://www.mutt.org/doc/manual/#patterns
send-hook . 'reset crypt_autoencrypt'
send-hook '~f sanchayan@sanchayanmaity\\.net' 'set crypt_autosign'