diff --git a/office/.config/neomutt/account b/office/.config/neomutt/account index 9abd8b7..6714331 100644 --- a/office/.config/neomutt/account +++ b/office/.config/neomutt/account @@ -1,15 +1,15 @@ # Account settings # local maildir settings -set mbox_type = Maildir -set folder = ~/documents/mail # This has the shortcut '+' or '=' -set spoolfile = "+Inbox" # This has the shortcut '!' -set postponed = "+Drafts" -set record = "+Sent" -set trash = "+Trash" -mailboxes ! \ - "+Sent" \ - "+Drafts" \ - "+Trash" \ - "+Archive" \ - "+Junk" +set mbox_type = Maildir +set folder = ~/documents/mail # This has the shortcut '+' or '= ' +set spool_file = "+Inbox" # This has the shortcut '!' +set postponed = "+Drafts" +set record = "+Sent" +set trash = "+Trash" +mailboxes -notify -poll ! \ + -poll "+Archive" \ + -poll "+Jobs" \ + -poll "+Receipts" \ + -nonotify -nopoll "+Junk" \ + -nonotify -nopoll "+Sent" \ diff --git a/office/.config/neomutt/colors b/office/.config/neomutt/colors index 513de51..3efc537 100644 --- a/office/.config/neomutt/colors +++ b/office/.config/neomutt/colors @@ -80,6 +80,7 @@ set compose_format="-- NeoMutt: Compose [Approx. msg size: %l Atts: %a]%>-" # set vfolder_format = "%N %?n?%3n& ? %8m  · %f" set attach_format = "%u%D  %T %-75.20d %T  %5s %m/%M" set sidebar_format = '%D%?Z? [%Z]?%* %?S?%S?' +set sidebar_format = '%B%%* %%S' index-format-hook attachment_info '=B text/calendar ~X 1' ' ' index-format-hook attachment_info '=B text/calendar' " " index-format-hook attachment_info '~X 1' " " @@ -139,7 +140,6 @@ color sidebar_divider color8 black # divider between sidebar & content color sidebar_flagged red black # mailboxes containing flagged mail color sidebar_new green black # mailboxes containing new mail color sidebar_unread color7 default # mailboxes containing unread mail -color sidebar_unread color7 default # mailboxes containing unread mail # Message Headers ----------------------------------------------------------------- diff --git a/office/.config/neomutt/neomuttrc b/office/.config/neomutt/neomuttrc index 3932ebf..84fcf1c 100644 --- a/office/.config/neomutt/neomuttrc +++ b/office/.config/neomutt/neomuttrc @@ -3,4 +3,3 @@ source settings source maps source account - diff --git a/office/.config/neomutt/settings b/office/.config/neomutt/settings index 87f7d51..d564dd8 100644 --- a/office/.config/neomutt/settings +++ b/office/.config/neomutt/settings @@ -1,91 +1,120 @@ - set mail_check = 60 set mail_check_stats -set quit # at least for rapid prototyping -set sleep_time = 0 # no pause for info messages -set mark_old = no # things should only be new/unread or I actually looked at them -set pager_read_delay = 3 # mark read after 3 sec -set pipe_decode # get rid of headers when passing messages along -set auto_tag # apply commands to all tagged messages automatically -set wait_key = no # don't wait for user input after shell cmds, auto-view, piping, etc -set thorough_search = no # don't pre-process mail for ~b/~B searches -set flag_safe # make it impossible to delete flagged mails - # Pager settings - # filetypes and mailcap +# at least for rapid prototyping +set quit +# no pause for info messages +set sleep_time = 0 +# things should only be new/unread or I actually looked at them +set mark_old = no +# mark read (not just seen) after +set pager_read_delay = 2 +# get rid of headers when passing messages along +set pipe_decode +# apply commands to all tagged messages automatically +set auto_tag +# dont wait for user input after shell cmds, auto-view, piping, etc +set wait_key = no +# dont pre-process mail for ~b/~B searches +set thorough_search = no +# make it impossible to delete flagged mails +set flag_safe + +################### Pager settings +# filetypes and mailcap set mailcap_path = "~/.config/neomutt/mailcap:~/.mailcap:/usr/share/neomutt/mailcap:/etc/mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap" - # Consult mime.types for determining types of these attachments +# Consult mime.types for determining types of these attachments mime_lookup application/octet-stream - # This requires a ~/.mailcap entry with the copiousoutput flag, such as: - # text/html; lynx -dump -width ${COLUMNS:-80} %s; nametemplate=%s.html; copiousoutput - # Prefer plain text to html but multipart to plain for those only sending that +# This requires a ~/.mailcap entry with the copiousoutput flag, such as: +# text/html; lynx -dump -width ${COLUMNS:-80} %s; nametemplate=%s.html; copiousoutput auto_view application/ics auto_view text/calendar auto_view text/plain auto_view text/html -alternative_order text/calendar application/ics text/plain text/enriched text/html text/* multipart/mixed multipart/related text/plain -set count_alternatives = yes # look for attachments also in multipart/alternatives - # Remember to `mkdir -p ~/.neomutt/hcache` first: -set header_cache= "~/.neomutt/hcache" - # Compose settings -set edit_headers # allow editing headers while writing mail -set sig_dashes # separate signature from mail -set fast_reply # automatically fill in from and subject for replies -set forward_format = "Fwd: %s" -set reply_to # default send back to reply-to: header instead of from: header -set reverse_name # default to reply as person e-mail was originally sent to -set include # include original msg in reply -set forward_quote # include original msg as quote in fwd -set forward_format = "FW: %s" # subject for forwarding -set mime_forward = no # forward attachments with mail -set fcc_attach # attachments saved with body - # set editor = "emacsclient -a emacs -t" - # set editor = "vim" -set mime_type_query_command = "xdg-mime query filetype" - # send settings -set sendmail = "/usr/bin/msmtp" -set sendmail_wait = 0 +# Prefer plain text to html but multipart to plain for those only sending that +alternative_order text/calendar application/ics text/plain text/enriched text/html multipart/mixed multipart/related text/plain text/* -# Display Settings -set allow_ansi # allow escape codes for color etc -set sort = threads -set sort_re # thread based on regex below +# look for attachments also in multipart/alternatives +set count_alternatives = yes +# AFAIK we do not have to manually ensure dir existence +set header_cache= "~/.cache/neomutt/hcache/" +# recommended https://github.com/neomutt/neomutt/issues/3259#issuecomment-1043693471 +set header_cache_backend = "lmdb" +set header_cache_compress_method = "lz4" +set header_cache_compress_level = 9 + +################### Compose settings +# allow editing headers while writing mail +set edit_headers +# separate signature from mail +set sig_dashes +# automatically fill in from and subject for replies +set fast_reply +# subject for forwarding +set forward_format = "Fwd: %s" +# default send back to reply-to: header instead of from: header +set reply_to +# default to reply as person e-mail was originally sent to +set reverse_name +# include original msg in reply +set include +# include original msg as quote in fwd +set forward_quote +# forward attachments with mail +set mime_forward = no +# attachments saved with body +set fcc_attach +# we use mimeo in this house +set mime_type_query_command = "mimeo -m" +# send settings +set sendmail = "/usr/bin/msmtp" +set sendmail_wait = 10 + +################## Display Settings +# allow escape codes for color etc +set allow_ansi +# thread based on the regexes below set reply_regex = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*" set quote_regex = "^( {0,4}[>|:#%]| {0,4}[A-Za-z0-9]+[>|]+)+" -set sort_aux = last-date-received #### Thread ordering set use_threads=reverse set sort='last-date' +set sort_aux = date set collapse_all = yes set uncollapse_new = no set thread_received = yes -set narrow_tree=no -# set date_format = "%z/%m/%d %I:%M%p" -# set date_format = "%m/%d" -# set index_format = "%4C [%Z] %{%y/%b %d} %-20.20F %s" +set narrow_tree = yes + # sidebar view options -set sidebar_visible = yes -set sidebar_width = 24 -# set sidebar_format = "%B%?F? [%F]?%* %?N?%N/?%S" -set sidebar_divider_char = ' ░' -set sidebar_folder_indent = yes -set sidebar_indent_string = ' - ' +set sidebar_width = 20 set sidebar_visible = no -set sidebar_next_new_wrap = yes -set sidebar_short_path = yes set sidebar_component_depth = 0 -color sidebar_new color221 color233 +set sidebar_divider_char = '│' +set sidebar_next_new_wrap = yes +set sidebar_sort = 'path' +# Shorten mailbox names +set sidebar_short_path = yes +# Delete everything up to the last / character +set sidebar_delim_chars="/" +# Indent folders whose names we've shortened +set sidebar_folder_indent = yes +# Indent with two spaces +# set sidebar_indent_string = ' - ' +set sidebar_indent_string=" " + # statusbar view options set status_chars = " *%A" -# set status_format = "───[ Folder: %f ]───[%r%m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]───%>─%?p?( %p postponed )?───" # pager view options set pager_index_lines = 10 set pager_context = 3 -set pager_stop # do not go to next msg if at bottom of pager +# do not go to next msg if at bottom of pager +set pager_stop set menu_scroll = yes -set tilde # show tildes for blank lines -unset markers # no + markers for wrapped stuff -set wrap = 90 +# show tildes for blank lines +set tilde +# no + markers if a line goes off-screen +unset markers +set wrap = 100 # hide headers except for those explicitly unignored ignore * unignore From To Cc Bcc Date Subject Message-ID