From: Penny Leach Date: Fri, 4 Jul 2025 07:46:56 +0000 (+1200) Subject: 2025-07 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=HEAD;p=dotfiles%2Fmutt.git 2025-07 --- diff --git a/.muttrc b/.muttrc index cec7047..94b4cc0 100644 --- a/.muttrc +++ b/.muttrc @@ -1,5 +1,5 @@ # used to tell me when I have new mail. a bit redundant since I use procmail so much -mailboxes ~/Maildir/sgn/INBOX +mailboxes ~/Maildir/mjollnir/INBOX ~/Maildir/gmail/INBOX ~/Maildir/greens/INBOX # use maildir format set mbox_type="Maildir" @@ -21,7 +21,7 @@ set index_format="%4C %Z %{%Y-%m-%d %H:%M} %-15.15L (%?l?%4l&%4c?) %s" set print_command="muttprint" # no idea what this does since I'm using lbdbq now -set query_command="abook --mutt-query '%s'" +#set query_command="abook --mutt-query '%s'" # use mailplate for our editor set editor="mailplate --edit --auto --keep-unknown" @@ -44,29 +44,30 @@ set pgp_create_traditional="no" set pgp_timeout=1800 set pgp_replyencrypt set pipe_decode="yes" -set pgp_sign_as="A30EC22B" +#set pgp_sign_as="A30EC22B" +set pgp_sign_as="A110DDD2" #set header_cache="~/.mutt/cache" -send-hook '~t vf@eisti\.fr' 'unset pgp_autosign' +#send-hook '~t vf@eisti\.fr' 'unset pgp_autosign' #set xterm_set_titles=yes -# my_hdr X-Request-PGP: http://people.debian.org/~francois/public_key.asc +# my_hdr X-Request-PGP: http://people.debian.org/~francois/public_key.asc # start tofu -set display_filter='t-prot -cmekatlS --max-lines=250 --bigq --pgp-move-vrf -Mmutt' -macro generic \e0 ":unset display_filter\n" "Turn TOFU protection off" -macro generic \e1 ":set display_filter='t-prot -cmekatlS --max-lines=250 --bigq --pgp-move-vrf -Mmutt'\n" "Turn TOFU protection on" +#set display_filter='t-prot -cmekatlS --max-lines=250 --bigq --pgp-move-vrf -Mmutt' +#macro generic \e0 ":unset display_filter\n" "Turn TOFU protection off" +#macro generic \e1 ":set display_filter='t-prot -cmekatlS --max-lines=250 --bigq --pgp-move-vrf -Mmutt'\n" "Turn TOFU protection on" -macro pager \e0 ":unset display_filter; exec exit\n:exec display-message\n" "Turn TOFU protection off" -macro pager \e1 ":set display_filter='t-prot -cmekatlS --max-lines=250 --bigq --pgp-move-vrf -Mmutt'; exec exit\n:exec display-message\n" "Turn TOFU protection on" +#macro pager \e0 ":unset display_filter; exec exit\n:exec display-message\n" "Turn TOFU protection off" +#macro pager \e1 ":set display_filter='t-prot -cmekatlS --max-lines=250 --bigq --pgp-move-vrf -Mmutt'; exec exit\n:exec display-message\n" "Turn TOFU protection on" color body brightmagenta black "^\\[---.*" color body green black "^#v[-+]" # end tofu -alternative_order text/plain text/enriched text/html +alternative_order text/html text/enriched text/plain auto_view text/html auto_view text/x-vcard -auto_view application/msword +#auto_view application/msword set strict_threads set move=no @@ -74,29 +75,21 @@ set use_from set reverse_name=yes set fcc_attach=yes set from="penny@mjollnir.org" -set record="~/Maildir/sgn/store/" +set record="~/Maildir/mjollnir/store/" -fcc-hook "~f .*penny@catalyst.net.nz.*" +catalyst/Sent -fcc-hook "~f .*penny.leach@liip.ch.*" +liip/store -fcc-hook "~f .*penny@liip.ch.*" +liip/store -fcc-hook "~C .*dev@mahara.org.*" +sgn/mahara.dev -fcc-hook "~C .*PORTFOLIO-INTEROPERABILITY-WORK.*" +sgn/mahara.leap -fcc-hook "~C .*debian-women@lists.debian.org.*" +sgn/debian.women -fcc-hook "~C .*grrls-only@linuxchix.org.*" +sgn/linuxchix.grrlsonly -fcc-hook "~C .*nz-linuxchix@lists.catalyst.net.nz.*" +sgn/linuxchix.nz -fcc-hook "~C .*volunteers@linuxchix.org.*" +sgn/linuxchix.volunteers -fcc-hook .* +sgn/store +fcc-hook "~f .*penny.leach@greens.org.nz.*" +greens/Sent +fcc-hook .* +mjollnir/store -alternates "(penny@catalyst\.net\.nz)|(penny@she\.geek\.nz)|(penelope\.leach@gmail\.com)|(penny@mjollnir\.org)|(penny@wadda\.org)|(penny.leach@liip\.ch)|(penny@liip\.ch)" +alternates "(penny@she\.geek\.nz)|(penelope\.leach@gmail\.com)|(penny@mjollnir\.org)|(penny.leach@greens.org.nz)" macro compose e ':set my_editor="$editor":set editor=sensible-editor:set editor="$my_editor"' "invoke normal editor to edit message" macro index,pager e ':set my_editor="$editor":set editor=sensible-editor:set editor="$my_editor"' "invoke normal editor to edit message" -macro index \e2 ":set from=\"penny@mjollnir.org\"\n:set record=\"~/Maildir/sgn/store/\"\n" "Switch to penny@mjollnir.org" # Note this CONFLICTS with TOFU keybinding -macro index \e3 ":set from=\"penny@liip.ch\"\n:set record=\"~/Maildir/liip/store/\"\n" "Switch to penny.leach@liip.ch" +macro index \e2 ":set from=\"penny@mjollnir.org\"\n:set record=\"~/Maildir/mjollnir/store/\"\n" "Switch to penny@mjollnir.org" # Note this CONFLICTS with TOFU keybinding +macro index \e3 ":set from=\"penny.leach@greens.org.nz\"\n:set record=\"~/Maildir/greens/store/\"\n" "Switch to penny.leach@greens.org.nz" #macro index,pager A "abook --add-email-quiet" "add the sender address to abook" -macro index,pager A "goobook add" "add the sender address to Google contacts" +#macro index,pager A "goobook add" "add the sender address to Google contacts" bind index \es decrypt-save @@ -110,13 +103,8 @@ bind pager ] half-down #bind pager \ej "~/Maildir/catalyst/Junk" # this really does need status cues to become helpful. -folder-hook \/sgn\/ push \e1 -folder-hook \/catalyst\/ push \e2 -folder-hook \/liip\/ push \e3 - -# the old stuff from francois -#set status_format="-%r-penny@catalyst.net.nz: %f [Msgs:%?M?%M/?%m%?n? New:% n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---" -#macro index \e2 ":set signature=\"~/sgn.sig\"\n:set from=\"penny@she.geek.nz\"\n:set record=\"~/Maildir/sgn/Sent/\"\n:set status_format=\"-% r-penny@she.geek.nz: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(% s/%S)-%>-(%P)---\"\n" "Switch to penny@she.geek.nz" +folder-hook \/mjollnir\/ push \e2 +folder-hook \/greens\/ push \e3 #unfuck headers hdr_order From Organization Resent-From Reply-To X-Mailer User-Agent Date To Cc Subject @@ -139,26 +127,31 @@ color tilde blue default color tree red default # dealing with attachments - not quite working yet -macro attach W /home/penny/attach/ -macro attach E /home/penny/attach/ +#macro attach W /home/penny/attach/ +#macro attach E /home/penny/attach/ # put this last as it screws up the fucking syntax highlighting -macro index \eb 'c=search''mairix ' 'Enter Mairix search term' +#macro index \eb 'c=search''mairix ' 'Enter Mairix search term' +macro index "set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key notmuch-mutt -r --prompt search /Users/penny/.cache/notmuch/mutt/results set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key" "notmuch: search mail" + +macro index "set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key notmuch-mutt -r thread /Users/penny/.cache/notmuch/mutt/results set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key" "notmuch: reconstruct thread" + -macro index \ - "unset wait_keymutt-notmuch --prompt search~/.cache/mutt_results" \ - "search mail (using notmuch)" +#macro index \ + #"unset wait_keynotmuch-mutt --prompt search~/.cache/mutt_results" \ + #"search mail (using notmuch)" #macro index \ #mutt-patched only apparently - #"unset wait_keymutt-notmuch thread~/.cache/mutt_resultsset wait_key" \ + #"unset wait_keynotmuch-mutt thread~/.cache/mutt_resultsset wait_key" \ + #"search and reconstruct owning thread (using notmuch)" +#macro index \ + #"unset wait_keyunignore message-idnotmuch-mutt thread~/.cache/mutt_resultsset wait_key" \ #"search and reconstruct owning thread (using notmuch)" -macro index \ - "unset wait_keyunignore message-idmutt-notmuch thread~/.cache/mutt_resultsset wait_key" \ - "search and reconstruct owning thread (using notmuch)" set pager_index_lines=10 #set sort_aux=last-date-received +set sort=threads set wait_key=no @@ -183,3 +176,16 @@ set pgp_list_pubring_command="gpg --no-verbose --batch --quiet --with-colons --l set pgp_list_secring_command="gpg --no-verbose --batch --quiet --with-colons --list-secret-keys %r" set pgp_good_sign="^\\[GNUPG:\\] GOODSIG" + + +# sidebar +set sidebar_visible=yes +set sidebar_format="%B (%N/%S)" +set mail_check_stats=yes #sidebar needs to check all mailboxes + +bind index,pager sidebar-prev +bind index,pager sidebar-next +bind index,pager \e sidebar-open + +bind index,pager \\ sidebar-toggle-visible +