# Filename: ~/.config/neomutt/neomuttrc # Purpose: config file for neomutt # Authors: Dennis Eriksen # Bug-Reports: Email # License: This file is licensed under the BSD-3-Clause license. ################################################################################ # # General # # cfgdir! set my_cfgdir = "$XDG_CONFIG_HOME/mutt" setenv my_cfgdir "$my_cfgdir" # Set variable so mutt chan check if we really are neomutt set my_neomutt = 1 setenv my_neomutt 1 # Source defaults from muttrc source "$my_cfgdir/muttrc" # # Cache # # cachedir! set my_cached = "$XDG_CACHE_HOME/neomutt" setenv my_cached "$my_cached" # If no backend is specified, the first available backend will be used in the following order: tokyocabinet, kyotocabinet, qdbm, rocksdb, gdbm, bdb, tdb, lmdb # On OpenBSD, only kyotocabinet and tdb is available. set header_cache_backend = tdb # On OpenBSD, only zlib is compiled in. But that's slower than not using compression at all. set header_cache_compress_method = "" set header_cache_compress_level = 1 # Benchmark between kyotocabinet and tdb, with different compression levels. # This was done on a mailbox with ~68k emails, totaling 295MB. # (cold is when the cache is generated the first time) # # BACKEND COMPRESSION COLD WARM SIZE # no_header_cache n/a 23.478s n/a n/a # kyotocabinet none 28.144s 15.611s 64704kb # kyotocabinet zlib-1 40.051s 17.222s 37648kb # kyotocabinet zlib-3 40.508s 18.274s 37120kb # kyotocabinet zlib-6 43.247s 17.454s 36272kb # kyotocabinet zlib-9 42.991s 17.313s 36128kb # tdb none 29.166s 13.497s 88768kb # tdb zlib-1 40.566s 16.036s 46288kb # tdb Zlib-3 41.329s 16.449s 46288kb # tdb Zlib-6 43.746s 16.174s 46288kb # tdb Zlib-9 42.967s 16.049s 45472kb # # Sidebar # # (sidebar) Show the sidebar set sidebar_visible = yes # (sidebar) Width of the sidebar set sidebar_width = 30 # (sidebar) Characters that separate nested folders set sidebar_delim_chars = "/." # (sidebar) Abbreviate the paths using the `$folder` variable set sidebar_short_path = yes # (sidebar) Indent nested folders set sidebar_folder_indent = yes # (sidebar) Indent nested folders using this string set sidebar_indent_string = " " # (sidebar) Character to draw between the sidebar and index set sidebar_divider_char = " │" # (sidebar) printf-like format string for the sidebar panel set sidebar_format = "%D%%* %%S>" # # Misc # # Create 'From' header from 'X-Original-To' header set reply_with_xorig = yes # Set the 'In-Reply-To' and 'References' headers when forwarding a message set forward_references = yes # Periodically check for new mail set mail_check_stats = yes # How often to check for new mail set mail_check_stats_interval = 180 # Group directories before files in the browser set browser_sort_dirs_first = yes # Mailbox_folder_format set mailbox_folder_format = "%2C % %6m %i" # (notmuch) Default limit for Notmuch queries set nm_db_limit = 0 # The messages tagged with these tags are excluded and not loaded # from notmuch DB to mutt unless specified explicitly. set nm_exclude_tags = "ignore, trash, junk" # (notmuch) Database timeout set nm_open_timeout = 5 # (notmuch) Default query type: 'threads' or 'messages' set nm_query_type = "messages" # (notmuch) Tag to use for flagged messages set nm_flagged_tag = "flagged" # (notmuch) Use the first virtual mailbox as a spool file set virtual_spool_file = no # printf-like format string for the index menu (emails) - http://www.mutt.org/doc/manual/#index-format set index_format = "%3C %Z %@date@ %-20.20F (%?l?%4l&%4c?) %s%> %?H? S%-4.4H?%?g? %g?" # # Bindings # # These are mostly neomutt-specific bindings. See muttrc for generic bindings. bind index,alias,query,attach,compose,postpone,browser,pgp,pager B sidebar-toggle-visible bind index,alias,query,attach,compose,postpone,browser,pgp,pager \CP sidebar-prev bind index,alias,query,attach,compose,postpone,browser,pgp,pager sidebar-prev bind index,alias,query,attach,compose,postpone,browser,pgp,pager \CN sidebar-next bind index,alias,query,attach,compose,postpone,browser,pgp,pager sidebar-next bind index,alias,query,attach,compose,postpone,browser,pgp,pager \Cl sidebar-open bind index,alias,query,attach,compose,postpone,browser,pgp,pager sidebar-open bind index,alias,query,attach,compose,postpone,browser,pgp,pager sidebar-prev bind index,alias,query,attach,compose,postpone,browser,pgp,pager sidebar-next bind index,alias,query,attach,compose,postpone,browser,pgp,pager sidebar-open bind index,alias,query,attach,compose,postpone,browser,pgp,pager sidebar-open bind index,alias,query,attach,compose,postpone,browser,pgp,pager \Cx sidebar-toggle-virtual macro index,alias,query,attach,compose,postpone,browser,pgp,pager "" "Open next mailbox in sidebar" macro index,alias,query,attach,compose,postpone,browser,pgp,pager "" "Open next mailbox in sidebar" macro index,alias,query,attach,compose,postpone,browser,pgp,pager "" " x 15" macro index,alias,query,attach,compose,postpone,browser,pgp,pager "" " x 15" # open a different virtual folder bind index,pager X change-vfolder # read entire thread of the current message bind index,pager + entire-thread # modify (notmuch) tags bind index,pager \` modify-labels # generate virtual folder from query bind index,pager S vfolder-from-query # modify labels and then hide message # bind index,pager ??? modify-labels-then-hide # toggle between mailboxes and virtual mailboxes bind index,pager x sidebar-toggle-virtual # # Source local neomutt settings # source "`FILE="$my_cfgdir/neomuttrc.local"; [ -s "$FILE" ] && echo "$FILE" || echo /dev/null`" ## END OF FILE ################################################################# # vim:ft=neomuttrc