Created
October 11, 2022 19:57
-
-
Save brunnre8/72a3aa848f284993ed067e03a9d12e30 to your computer and use it in GitHub Desktop.
Neomutt settings related to notmuch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set folder = "~/mail" | |
source mailboxes-virt | |
unset record | |
unset move | |
unset mark_old | |
set edit_headers=yes | |
set realname="Reto" | |
set from="primary@example.com" | |
unset user_agent # no mutt, you aren't special | |
unset signature | |
# send mail stuff | |
set sendmail="/bin/msmtp --read-envelope-from" | |
set use_from=yes | |
# reply with the address it was received on | |
set reverse_name | |
set use_envelope_from=no | |
# sigh... mkey when we receive it via a list we aren't on the from... monkey patching it is | |
# WE MUST RESET WHATEVER WE DO IN A DEFAULT HOOK. | |
# Reset if this isn't a reply | |
send-hook '! ~Q' unmy_hdr from: | |
reply-hook . unmy_hdr from: | |
reply-hook '~h"Delivered-To: asdf@gmail\.com"' my_hdr from: asdf@gmail.com | |
reply-hook '~h"Delivered-To: xyz@example\.com"' my_hdr from: xyz@example.com | |
reply-hook '~h"Delivered-To: primary@example\.com"' my_hdr from: primary@example.com | |
# The messages tagged with these tags are excluded and not loaded | |
# # from notmuch DB to NeoMutt unless specified explicitly. | |
set nm_exclude_tags = "spam,muted,archive" | |
# Sync email | |
macro index O "<shell-escape>systemctl --user start mbsync.service &<enter>" "run mbsync to sync all mail" | |
macro index c "<change-vfolder>?/" "Change folder by searching" | |
macro index C "<vfolder-from-query>" "New vfolder based on query" | |
macro index ,ra "<tag-pattern>~N<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all new as read" | |
macro index,pager dd "<modify-labels>!archive\n" "toggle archive tag" | |
bind index,pager ,t modify-labels | |
bind index <space> collapse-thread | |
bind index,pager + entire-thread | |
bind index - limit-current-thread |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment