From 2073b1e680e1042d1d031742f6d6dfec238cabbb Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Mon, 13 Jun 2022 14:38:21 -0400 Subject: set from for sdf --- dot_muttrc | 161 ------------------------------------------------------ dot_muttrc.tmpl | 164 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 164 insertions(+), 161 deletions(-) delete mode 100644 dot_muttrc create mode 100644 dot_muttrc.tmpl diff --git a/dot_muttrc b/dot_muttrc deleted file mode 100644 index 0f07a83..0000000 --- a/dot_muttrc +++ /dev/null @@ -1,161 +0,0 @@ -set realname = 'Ryan Kavanagh' # default: '' -set use_from = yes -set use_envelope_from = yes -set reverse_name = yes -set reverse_realname = no -alternates "ryanakca@(gmail\\.com|kubuntu\\.org|ubuntu\\.com)|(ryan\\.kavanagh|9rak)@queensu\\.ca|rak@(debian\\.org|rak\\.ac|ryanak\\.ca)|rkavanag@((andrew|alumni|cs)\\.cmu\\.edu)|rkavanagh@cs\\.cmu\\.edu|ryan@cs\\.queensu\\.ca|ryank@cs\\.mcgill\.ca|ryan\\.kavanagh@(mail\\.)?mcgill\\.ca" - -set crypt_autosign = yes # default: no -set crypt_replysign = yes # default: no -set crypt_replysignencrypted = yes # default: no - -set editor="vim" - -set pager_context = 1 - -set send_charset="utf-8" - -set imap_check_subscribed = yes # default: no -set imap_list_subscribed = yes # default: no - -# Don't continue to next email when reaching end of current -set pager_stop = yes - -# Display HTML mail only if there's no text/plain -alternative_order text/plain text/html * -auto_view text/html -set display_filter="~/bin/lbdb-fetchaddr-wrapper" - -set timeout=15 -set mail_check=60 - -set move = no - -set header_cache="~/.mutt/cache/headers" -set message_cachedir="~/.mutt/cache/bodies" - -set edit_headers = yes - -# Sane subject format when forwarding: -set forward_format = "Fwd: %s" -# Mime forwarding -set mime_forward = ask-yes - -#set arrow_cursor -#noop pager G -bind index G imap-fetch-mail -bind index ( next-unread-mailbox -bind index * next-unread -bind pager i exit - -# To keep the macro .n from binding just . -bind index . noop -macro index .n "~N|~ONO~T" "Catchup all new messages" - -my_hdr OpenPGP: id=4E469519ED677734268FBD958F7BF8FC4A11C97A\; url=https://rak.ac/contact/4E469519ED677734268FBD958F7BF8FC4A11C97A.asc\; preference=sign - -set sort=threads -set sort_aux=date -set move=no -set mark_old=no -ignore * # ignore all headers except for ... -unignore date from to cc bcc subject -hdr_order date from to cc bcc subject -# MessageNo Mo Day (To if sent by me, from if sent to me) List [Flags (Hidden Messages/line count) Subject -set index_format="%4C %{%m%d} %-16.16F [%Z] %?M?(#%03M)&(%4l)? %s" -# Narrow / wide versions. -macro index \cxn 'set index_format="%4C %{%m%d} %-16.16F [%Z] %?M?(#%03M)&(%4l)? %s"' -macro index \cxw 'set index_format="%4C %{%y%m%d} %-16.16F %-15.15B [%Z] %?M?(#%03M)&(%4l)? %s"' - -set print_command="muttprint -2" - -set mark_old=yes - -set query_command="lbdbq %s" -# set query_command = "abook --mutt-query '%s'" -# macro generic,index,pager \ca "abook" "launch abook" -# macro index,pager A "abook --add-email-quiet" -set reverse_alias = yes -set alias_file = ~/.mutt/alias.rc - -set ispell="aspell -e -c" - -# set up the sidebar, default not visible -set mail_check_stats=yes -set sidebar_visible = no -set sidebar_short_path = yes -set sidebar_folder_indent = yes -set sidebar_width = 25 -set sidebar_format = "%B%?F? [%F]?%* %?N?%N?" -set sidebar_divider_char = "┃" -set sidebar_delim_chars = "/." -set sidebar_non_empty_mailbox_only = yes -set sidebar_sort_method = alpha -# which # mailboxes to list in the sidebar -# mailboxes =inbox =ml -# color of folders with new mail - -# ctrl-n, ctrl-p to select next, prev folder # -# ctrl-o to open selected folder -bind index,pager \CP sidebar-prev -bind index,pager \CN sidebar-next -bind index,pager \CO sidebar-open - -# Remap bounce-message function to "B" -bind index B bounce-message - -macro index b 'toggle sidebar_visible' -macro pager b 'toggle sidebar_visible' - -macro index \cb |urlscan\n -macro pager \cb |urlscan\n -macro index I 'c=INBOX' -macro index x 'c=QueensU.INBOX' -#:source ~/.muttrc' - -bind editor noop - -unignore X-Label: - -set mbox_type=mbox - -# In case it's unset -set sendmail="sendmail -oem -oi" - -set fcc_before_send=yes - -# For the -f option to work properly with account-hooks, it looks like I need -# to unset the folder option -unset folder -source ~/.mutt/accounts.rc -# load alias-cmu.rc before alias.rc so that alias.rc overrides any aliases -# in all accounts apart from SCS. The SCS account hook reloads alias-cmu.rc -# afterwards -source ~/.mutt/alias-cmu.rc -source ~/.mutt/alias.rc -source ~/.mutt/mailinglists.rc -source ~/.mutt/score.rc -source ~/.mutt/color.rc -source ~/.mutt/savehooks.rc -source ~/.mutt/gpg.rc -source ~/.mutt/news.rc - -set tmpdir='~/.mutt/tmp' - -macro index \ - "unset wait_key~/bin/mutt-fetchbug --prompt search~/.cache/mutt_btsresultsset wait_key" \ - "fetch bug(s) (using bts show)" -macro index \ - "unset wait_key~/bin/mutt-notmuch --prompt search~/.cache/mutt_results" \ - "search mail (using notmuch)" -macro index \ - "unset wait_key~/bin/mutt-notmuch thread~/.cache/mutt_resultsset wait_key" \ - "search and reconstruct owning thread (using notmuch)" - -macro index N \ - "~(~N|~O)" \ - "Show only threads with new/old messages" - -macro index A \ - "all" \ - "Show all messages (remove limit)" diff --git a/dot_muttrc.tmpl b/dot_muttrc.tmpl new file mode 100644 index 0000000..8dd0352 --- /dev/null +++ b/dot_muttrc.tmpl @@ -0,0 +1,164 @@ +set realname = 'Ryan Kavanagh' # default: '' +set use_from = yes +set use_envelope_from = yes +set reverse_name = yes +set reverse_realname = no +alternates "ryanakca@(gmail\\.com|kubuntu\\.org|ubuntu\\.com)|(ryan\\.kavanagh|9rak)@queensu\\.ca|rak@(debian\\.org|rak\\.ac|ryanak\\.ca)|rkavanag@((andrew|alumni|cs)\\.cmu\\.edu)|rkavanagh@cs\\.cmu\\.edu|ryan@cs\\.queensu\\.ca|ryank@cs\\.mcgill\.ca|ryan\\.kavanagh@(mail\\.)?mcgill\\.ca|rak@sdf\\.org" + +set crypt_autosign = yes # default: no +set crypt_replysign = yes # default: no +set crypt_replysignencrypted = yes # default: no + +set editor="vim" + +set pager_context = 1 + +set send_charset="utf-8" + +set imap_check_subscribed = yes # default: no +set imap_list_subscribed = yes # default: no + +# Don't continue to next email when reaching end of current +set pager_stop = yes + +# Display HTML mail only if there's no text/plain +alternative_order text/plain text/html * +auto_view text/html +set display_filter="~/bin/lbdb-fetchaddr-wrapper" + +set timeout=15 +set mail_check=60 + +set move = no + +set header_cache="~/.mutt/cache/headers" +set message_cachedir="~/.mutt/cache/bodies" + +set edit_headers = yes + +# Sane subject format when forwarding: +set forward_format = "Fwd: %s" +# Mime forwarding +set mime_forward = ask-yes + +#set arrow_cursor +#noop pager G +bind index G imap-fetch-mail +bind index ( next-unread-mailbox +bind index * next-unread +bind pager i exit + +# To keep the macro .n from binding just . +bind index . noop +macro index .n "~N|~ONO~T" "Catchup all new messages" + +my_hdr OpenPGP: id=4E469519ED677734268FBD958F7BF8FC4A11C97A\; url=https://rak.ac/contact/4E469519ED677734268FBD958F7BF8FC4A11C97A.asc\; preference=sign + +set sort=threads +set sort_aux=date +set move=no +set mark_old=no +ignore * # ignore all headers except for ... +unignore date from to cc bcc subject +hdr_order date from to cc bcc subject +# MessageNo Mo Day (To if sent by me, from if sent to me) List [Flags (Hidden Messages/line count) Subject +set index_format="%4C %{%m%d} %-16.16F [%Z] %?M?(#%03M)&(%4l)? %s" +# Narrow / wide versions. +macro index \cxn 'set index_format="%4C %{%m%d} %-16.16F [%Z] %?M?(#%03M)&(%4l)? %s"' +macro index \cxw 'set index_format="%4C %{%y%m%d} %-16.16F %-15.15B [%Z] %?M?(#%03M)&(%4l)? %s"' + +set print_command="muttprint -2" + +set mark_old=yes + +set query_command="lbdbq %s" +# set query_command = "abook --mutt-query '%s'" +# macro generic,index,pager \ca "abook" "launch abook" +# macro index,pager A "abook --add-email-quiet" +set reverse_alias = yes +set alias_file = ~/.mutt/alias.rc + +set ispell="aspell -e -c" + +# set up the sidebar, default not visible +set mail_check_stats=yes +set sidebar_visible = no +set sidebar_short_path = yes +set sidebar_folder_indent = yes +set sidebar_width = 25 +set sidebar_format = "%B%?F? [%F]?%* %?N?%N?" +set sidebar_divider_char = "┃" +set sidebar_delim_chars = "/." +set sidebar_non_empty_mailbox_only = yes +set sidebar_sort_method = alpha +# which # mailboxes to list in the sidebar +# mailboxes =inbox =ml +# color of folders with new mail + +# ctrl-n, ctrl-p to select next, prev folder # +# ctrl-o to open selected folder +bind index,pager \CP sidebar-prev +bind index,pager \CN sidebar-next +bind index,pager \CO sidebar-open + +# Remap bounce-message function to "B" +bind index B bounce-message + +macro index b 'toggle sidebar_visible' +macro pager b 'toggle sidebar_visible' + +macro index \cb |urlscan\n +macro pager \cb |urlscan\n +macro index I 'c=INBOX' +macro index x 'c=QueensU.INBOX' + +bind editor noop + +unignore X-Label: + +set mbox_type=mbox + +# In case it's unset +set sendmail="sendmail -oem -oi" + +set fcc_before_send=yes + +# For the -f option to work properly with account-hooks, it looks like I need +# to unset the folder option +unset folder +source ~/.mutt/accounts.rc +# load alias-cmu.rc before alias.rc so that alias.rc overrides any aliases +# in all accounts apart from SCS. The SCS account hook reloads alias-cmu.rc +# afterwards +source ~/.mutt/alias-cmu.rc +source ~/.mutt/alias.rc +source ~/.mutt/mailinglists.rc +source ~/.mutt/score.rc +source ~/.mutt/color.rc +source ~/.mutt/savehooks.rc +source ~/.mutt/gpg.rc +source ~/.mutt/news.rc + +{{- if hasPrefix .chezmoi.homeDir "/sdf" }} +set from = 'Ryan Kavanagh ' +{{- end }} + +set tmpdir='~/.mutt/tmp' + +macro index \ + "unset wait_key~/bin/mutt-fetchbug --prompt search~/.cache/mutt_btsresultsset wait_key" \ + "fetch bug(s) (using bts show)" +macro index \ + "unset wait_key~/bin/mutt-notmuch --prompt search~/.cache/mutt_results" \ + "search mail (using notmuch)" +macro index \ + "unset wait_key~/bin/mutt-notmuch thread~/.cache/mutt_resultsset wait_key" \ + "search and reconstruct owning thread (using notmuch)" + +macro index N \ + "~(~N|~O)" \ + "Show only threads with new/old messages" + +macro index A \ + "all" \ + "Show all messages (remove limit)" -- cgit v1.2.3