From b313616b4cc64727999e17a33b813f63e1ecb7bc Mon Sep 17 00:00:00 2001 From: Jake Koroman Date: Fri, 31 Jul 2026 23:48:55 -0400 Subject: update mutt to use notmuch --- mutt/muttrc | 66 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 32 insertions(+), 34 deletions(-) (limited to 'mutt') diff --git a/mutt/muttrc b/mutt/muttrc index 0d5b395..46596c9 100644 --- a/mutt/muttrc +++ b/mutt/muttrc @@ -9,6 +9,16 @@ set pager_stop=yes set sort = threads set sort_aux = reverse-last-date-received +set virtual_spoolfile=yes +set folder=~/mail/.notmuch/ +virtual-mailboxes "inbox" "notmuch://?query=tag:inbox" +virtual-mailboxes "archive" "notmuch://?query=tag:archive" +virtual-mailboxes "sent" "notmuch://?query=tag:sent" +virtual-mailboxes "trash" "notmuch://?query=tag:trash" +set record = "~/mail/personal/Sent" +set nm_record = yes +set nm_record_tags = "sent" + set fast_reply set fcc_attach set forward_format = "Fwd: %s" @@ -17,16 +27,19 @@ set include set reverse_name set markers = no set mark_old = no +set date_format = "%m/%d/%y" +set index_format = "%2C: %d %Z %-12.12g %-15.15L (%) %s" set header_cache = $XDG_CACHE_HOME/mutt/header_cache -set mbox_type=Maildir -set folder=~/mail/personal/ -set spoolfile= +INBOX -mailboxes =INBOX =Archive =Sent =Trash =Junk =Drafts -set postponed = +Drafts -set trash = +Trash -set record = +Sent +macro index a "+archive -unread -inbox" "Archive message" +macro index t "+todo -unread" "Todo message" +macro index I "+inbox -archive -trash" "Inbox message" +macro index d "+trash -unread -inbox" "Trash message" +macro index N "-unread" "Read message" +macro index c "?" "Change to vfolder overview" +macro index \\\\ "" "Search mailbox" +bind index,pager l modify-labels bind index j noop bind index k noop @@ -41,14 +54,18 @@ bind index gg first-entry bind index G last-entry bind index tag-entry -bind index e next-entry -bind index i previous-entry +bind browser o select-entry +bind pager o view-attachments +bind attach n exit +bind attach o view-attach +bind index,attach,browser e next-entry +bind index,attach,browser i previous-entry bind index o display-message bind index s sort-mailbox bind index k toggle-read # only show unread -bind index ^U previous-page -bind index ^D next-page +bind index \Cu previous-page +bind index \Cd next-page bind pager e next-page bind pager i previous-page @@ -64,26 +81,7 @@ bind index,pager C noop bind pager n exit bind pager k search-next -macro index,pager gi "=INBOX" "go to inbox" -macro index,pager Mi ";=INBOX" "move mail to inbox" -macro index,pager Ci ";=INBOX" "copy mail to inbox" -macro index,pager gd "=Drafts" "go to drafts" -macro index,pager Md ";=Drafts" "move mail to drafts" -macro index,pager Cd ";=Drafts" "copy mail to drafts" -macro index,pager gj "=Junk" "go to junk" -macro index,pager Mj ";=Junk" "move mail to junk" -macro index,pager Cj ";=Junk" "copy mail to junk" -macro index,pager gt "=Trash" "go to trash" -macro index,pager Mt ";=Trash" "move mail to trash" -macro index,pager Ct ";=Trash" "copy mail to trash" -macro index,pager gs "=Sent" "go to sent" -macro index,pager Ms ";=Sent" "move mail to sent" -macro index,pager Cs ";=Sent" "copy mail to sent" -macro index,pager ga "=Archive" "go to archive" -macro index,pager Ma ";=Archive" "move mail to archive" -macro index,pager Ca ";=Archive" "copy mail to archive" - -color index green default '.*' -color index_author magenta default '.*' -color index_number yellow default -color index_subject cyan default '.*' +#color index green default '.*' +#color index_author magenta default '.*' +#color index_number yellow default +#color index_subject cyan default '.*' -- cgit v1.2.3