Created
October 14, 2017 07:30
-
-
Save guiniol/4369f5e802c2668d75bb4785e7a9c09c to your computer and use it in GitHub Desktop.
neomutt/notmuch configuration
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 realname = "Guillaume Brogi" | |
set from = "[email protected]" | |
set use_from = yes | |
set user_agent = yes | |
set sendmail = "/usr/bin/msmtp" | |
set editor = "nvim +/^$/+1 +':noh'" | |
set charset = "utf-8" | |
set send_charset = "utf-8" | |
set assumed_charset = "utf-8" | |
set history_remove_dups = yes | |
set alias_file = ~/.config/neomutt/aliases.muttrc | |
source ~/.config/neomutt/aliases.muttrc | |
source /usr/share/doc/neomutt/vim-keys/vim-keys.rc | |
source ~/.config/neomutt/gruvbox.muttrc | |
set header_cache_backend = "gdbm" | |
set mbox_type = Maildir | |
set folder = ~/.maildirs/NetC/neomutt | |
set header_cache = ~/.cache/neomutt | |
set message_cachedir = $header_cache | |
set spoolfile = +/ | |
set record = +/ | |
set postponed = +/../draftbox | |
set sort = 'threads' | |
set sort_aux = 'last-date-received' | |
#set date_format = "%d %b %Y" | |
set index_format = " %Z %<[y?%<[m?%<[d?%[ %H:%M]&%[ %a %d]>&%[ %b %d]>&%[%d/%m/%Y]> %-30.30F %<M?(%2M)& > %?GS?%GS& ?%?GE?%GE& ?%?GA?%GA& ? %.100s %g" | |
set attach_format = "%u%D%I %t%4n %T%.75d (%.75f) %> [%.15m/%.15M, %.6e%?C?, %C?, %s] " | |
unset help | |
ignore * | |
unignore from date subject to cc bcc tags | |
set collapse_unread = yes | |
set uncollapse_jump = yes | |
folder-hook . "exec collapse-all" | |
set wait_key = no | |
set markers = no | |
set smart_wrap | |
set menu_context = 5 | |
set menu_move_off = no | |
set menu_scroll = yes | |
set pager_context = 5 | |
set pager_index_lines = 10 | |
set fast_reply = yes | |
set include = yes | |
set timeout = 30 | |
set edit_headers = yes | |
set forward_format = "Fwd: %s" | |
timeout-hook 'exec sync-mailbox' | |
shutdown-hook 'exec sync-mailbox' | |
set crypt_use_gpgme = yes | |
#set pgp_use_gpg_agent = yes | |
set pgp_sign_as = 5A145EA24232980E243A2DAC37CD42644BBC5F03 | |
set pgp_self_encrypt_as = 5A145EA24232980E243A2DAC37CD42644BBC5F03 | |
set pgp_self_encrypt = yes | |
#set smime_default_key = 5A145EA24232980E243A2DAC37CD42644BBC5F03 | |
#set smime_self_encrypt = yes | |
set crypt_verify_sig = yes | |
set crypt_autosign = yes | |
set crypt_opportunistic_encrypt = yes | |
set postpone_encrypt | |
message-hook '!~g !~G ~b "^-----BEGIN PGP (SIGNED )?MESSAGE"' 'exec check-traditional-pgp' | |
set query_command = "notmuch address %s" | |
set query_format = "%5c %t %a %n %?e?(%e)?" | |
set mailcap_path = ~/.config/neomutt/mailcap | |
alternative_order multipart/mixed text/plain text/calendar application/ics text/html | |
auto_view text/html | |
auto_view text/calendar | |
auto_view application/ics | |
set show_multipart_alternative = "info" | |
# Edit X-Labels | |
#bind index,pager yy edit-label | |
# Notmuch config | |
set nm_default_uri = "notmuch:///home/guiniol/.maildirs/NetC" | |
set virtual_spoolfile = yes | |
set hidden_tags = "inbox,unread,draft,flagged,passed,replied,signed,encrypted,attachment" | |
virtual-mailboxes "neomutt" "notmuch://?query=folder:neomutt and NOT tag:archive" | |
virtual-mailboxes "eudyptula" "notmuch://?query=folder:eudyptula and NOT tag:archive" | |
virtual-mailboxes "vfio" "notmuch://?query=folder:vfio and NOT tag:archive" | |
macro index \\ "<vfolder-from-query>" | |
macro index,pager A "<modify-labels>!archive -unread !inbox\\n" | |
bind index,pager + entire-thread | |
bind index,pager y modify-labels | |
bind index,pager X change-vfolder | |
tag-transforms "attachment" "@" \ | |
"encrypted" "" \ | |
"signed" "✎" \ | |
"neomutt-users" "users" \ | |
"neomutt-devel" "devel" \ | |
"github-issues" "gh" | |
tag-formats "attachment" "GA" \ | |
"encrypted" "GE" \ | |
"signed" "GS" | |
subscribe [email protected] | |
subscribe [email protected] | |
subscribe [email protected] | |
subscribe [email protected] | |
lua-source ~/.config/neomutt/utils.lua | |
folder-hook neomutt 'lua chgdir("~/.maildirs/NetC/neomutt", true)' | |
folder-hook eudyptula 'lua chgdir("~/.maildirs/NetC/eudyptula", false)' | |
folder-hook vfio 'lua chgdir("~/.maildirs/NetC/vfio", true)' | |
set mail_check_stats = yes | |
set sidebar_visible = yes | |
set sidebar_width = 20 | |
set sidebar_new_mail_only = no | |
set sidebar_sort_method = 'unsorted' | |
set sidebar_format = "%B%* %?N?(%N)? %S" | |
bind index,pager \CJ sidebar-next | |
bind index,pager \CK sidebar-prev | |
bind index,pager \CL sidebar-open | |
#macro index,pager ut <tag-thread><limit>~T<enter><tag-thread> "show only current thread" | |
#macro index,pager ua <limit>all<enter> "show everything" | |
bind index <Return> display-message | |
bind index,pager R group-reply | |
bind index,pager @ compose-to-sender | |
bind index u toggle-new | |
bind index,pager U undelete-message | |
macro attach s <save-entry><kill-line>/home/guiniol/downloads/<enter>y "Save entry" | |
macro index P '<shell-escape>check-mail.sh >/dev/null 2>&1 &<enter>' "Check for new mails" | |
macro compose E 'qy<shell-escape>termite -e "zsh -c \"/usr/bin/neomutt -F <(cat ~/.config/neomutt/neomuttrc ~/.config/neomutt/external-editor.muttrc) -p\"" >/dev/null 2>&1 &<enter>' "Edit in new window" | |
bind compose R rename-attachment | |
bind compose \CO rename-file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment