# vim: filetype=neomuttrc source /usr/share/mutt-wizard/mutt-wizard.muttrc # mw-autogenerated source /home/shared/dotfiles/private/.mutt/colors.muttrc # -------- Setting {{{ #------------------------------------------------------ # Set default text editor set editor = "$EDITOR + -c 'set textwidth=72' -c 'set wrap' -c 'set spell spelllang=en' " set pager_context=4 set pager_index_lines=10 set pager_stop set text_flowed=yes # }}} # ------- Account hooks {{{ #------------------------------------------------------ account-hook '1-herts.muttrc' 'set imap_user=vg17aar@herts.ac.uk imap_pass=`pass mutt-wizard-herts`' account-hook '2-xyz.muttrc' 'set imap_user=vito imap_pass=`pass mutt-wizard-xyz`' account-hook '3-bt.muttrc' 'set imap_user=v.graffagnino@btinternet imap_pass=`pass mutt-wizard-bt`' # # }}} # ------- Folder hooks {{{ #------------------------------------------------------ folder-hook '1-herts.muttrc' 'source ~/.config/mutt/accounts/1-herts.muttrc' folder-hook '2-xyz.muttrc' 'source ~/.config/mutt/accounts/2-xyz.muttrc' folder-hook '3-bt.muttrc' 'source ~/.config/mutt/accounts/4-bt.muttrc' # }}} # source default account source $HOME/.config/mutt/accounts/1-herts.muttrc # mw-autogenerated macro index,pager 'source $HOME/.config/mutt/accounts/1-herts.muttrc!;' "switch to v.graffagnino@herts.ac.uk" # mw-autogenerated macro index,pager 'source $HOME/.config/mutt/accounts/2-xyz.muttrc!;' "switch to vito@graffagnino.xyz" # mw-autogenerated macro index,pager 'source /home/archlinux/vgg/.config/mutt/accounts/3-bt.muttrc!;' "switch to v.graffagnino@btinternet.com" # mw-autogenerated #-------- Basic config, you can leave this as is {{{ #------------------------------------------------------ set certificate_file = $HOME/.config/mutt/certificates set mailcap_path = $HOME/.config/mutt/mailcap set imap_check_subscribed set mail_check = 500 set timeout = 0 set imap_keepalive = 200 set imap_idle = yes set move = no set include set sort = 'reverse-date' set sort_aux = 'reverse-last-date-received' set auto_tag = yes hdr_order Date From To Cc auto_view text/html alternative_order text/plain text/html * bind editor complete-query bind editor ^T complete bind editor noop bind index,pager \CP sidebar-prev # Ctrl-Shift-P - Previous Mailbox bind index,pager \CN sidebar-next # Ctrl-Shift-N - Next Mailbox bind index,pager \CO sidebar-open # Ctrl-Shift-O - Open Highlighted Mailbox mono bold bold mono underline underline mono indicator reverse # }}} macro index,pager \cb "set pipe_decode =yesurlviewset pipe_decode = no" "call urlview to extract URLs out of a message" macro attach,compose \cb " urlview" "call urlview to extract URLs out of a message" macro index,pager \cy "set pipe_decode = yes w3mset pipe_decode =no" "call w3m to extract URLs out of a message" macro attach,compose \cy " w3m" "call w3m to extract URLs out of a message" macro index \Cf "unset wait_keyread -p 'Enter a search term to find with notmuch: ' x; echo \$x >~/.cache/mutt_terms~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;s/\^id:// for@a;$,=\"|\";print@a' | perl -le '@a=<>; chomp@a; s/\\+/\\\\+/ for@a;print@a' \`\"" "show only messages matching a notmuch pattern" #source ~/.config/mutt/mutt_alias