# ------------------------------------------------------------------ # File: $HOME/.neomuttrc # Latest change: Sat Mar 14 02:23:42 CET 2020 # Created: Thu Aug 04 23:42:05 CEST 2016 # Purpose: Setup file for the mailer "neomutt" # Availability: http://www.guckes.net/Setup/neomuttrc # Author: Sven Guckes setup-neomuttrc(at)guckes.net # http://www.guckes.net/ # ------------------------------------------------------------------ # 2019-02-18 # hopefully this makes neomutt skip # scanning all mailboxes on startup *sigh* set check_mbox_size unset check_new set mail_check=0 set mail_check_stats # 2020-11-10 added these for completeness set mail_check_recent set mail_check_stats_interval=30 # ====================================================================== # SOURCE # ====================================================================== # read in the usual mutt setup: source ~/.muttrc # 2016-08-10, 2020-11-19 # for reading news via nntp: source ~/.neomutt/nntp # 2016-08-11 source ~/.neomutt/sidebar # 2017-07-10, 2020-11-21 source ~/.neomutt/color.index # 2020-11-19 # adjusting subject lines with "subjectrx": source ~/.neomutt/subjectrx # from now on all the default things will be overridden.. # ====================================================================== # INDEX_FORMAT # ====================================================================== # the if-then-else patch allows for spattern! # 2016-08-10 in = index new macro index ,in ":set index_format='%4C %Z % %{%Y-%b-%d} %-23.23F|%4c|%s'" # this uses the if-then-else on the %X pattern! # 2016-08-10 index for reading news # doesnt need %X (#attachments) or %Y (year), or %Z (status flags). # %C (count) - 3 suffices. macro index ,iN ":set index_format='%3C %{%b-%d} %-23.23F|%4c|%s'" # ====================================================================== # BINDINGS # ====================================================================== # NOTE: these bindings must come *after* the previuos "source" commands. # the command "edit-label" wasnt bound by default: bind index,pager \ey edit-label # revert to the bindings in mutt: bind index,pager F flag-message bind index,pager P parent-message # however - i like 'P' for both postponing and recalling messages: bind index P recall-message # bouncing the currently viewed message to my gmail account: macro pager \Co "gm\n\n" # ====================================================================== # TESTING # ====================================================================== # 2016-08-06 # use "##" to quickly reload this setup file. # macro index \#\# ':source ~/.neomuttrc\n' # 2016-10-02 # set abort_noattach = ask-yes # set attach_keyword = "\\" # when you "send" then neomutt will look for these words: # "attach", "attached", and "attachment" and "attachments" # and ask you with: # "No attachments, cancel sending? ([yes]/no):" # so "yes" to a "cancel" actually *sends* the mail. # this double negative is quite confusing. :-/ # 2016-10-02 # new command "compose-to-sender": bind index,pager @ compose-to-sender # tag some messages and use ";@" to send to them all! # 2017-07-10 # limit to messages with "[foo]" in the subject line macro index ä "~s [[][^]]*[]]\n" # a coloring for that pattern: color index_subject brightwhite blue '~s [[][^]]*[]]' # 2017-07-10 # mails from cron color index_subject brightyellow magenta '~f cron.daemon' # 2018-01-22 # "Subject: AW: ..." argh! o_O # "Subject: WG: ..." argh! o_O color index_subject brightyellow magenta "aw:" color index_subject brightyellow magenta "wg:" # 2017-07-10 # quickly sourcing the new color stuff with neomutt: macro index § ":source ~/.neomutt/neomuttrc.color.index\n" # 2017-07-22, 2017-12-20, 2020-11-11 set debug_level=0 # set debug_level=5 # 2018-03-28 # the '@' is now bounce to "compose-to-sender". # use 'ä' ("at") to show the sender's address: bind index ä display-address # 2019-02-19 # set history_remove_dups # 2019-12-30 # weird.. how was this lost? set status_on_top # setting this does not have an effect right away.. # only works after an "unset status_on_top". wtf?? # 2020-01-07 # "status_on_top" doesnt work somehow. # but when unsetting and resetting it - then it does. o_O unset status_on_top set status_on_top # 2020-03-14 # 2020-03-13 version gives "press any key" on startup # apparently connected to gpgme support. # unset crypt_use_gpgme # error with neomutt-20200626-260-9fe747 # 2020-11-14 # these werent bound? weird. bind browser,index zt current-top bind browser,index zz current-middle bind browser,index zb current-bottom # vim: set ai et noic nowrap ft=neomuttrc list isk+=@-@,. ts=4 tw=120: EOF