# vim: set ft=muttrc: set editor="/usr/bin/nvim" set sendmail="/usr/bin/msmtp" # keybindings source "~/.config/neomutt/mappings" # color source "~/.config/neomutt/color" set send_charset="utf-8" # connection information # This is should be config specifc not global # Keeping for reference # set ssl_force_tls=yes # unset ssl_starttls # status bar, date format, finding stuff etc. 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 )?" set date_format = "%d.%m.%Y %H:%M" set sort = threads set sort_aux = reverse-last-date-received set uncollapse_jump set sort_re set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*" set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+" set send_charset = "utf-8:iso-8859-1:us-ascii" set charset = "utf-8" set arrow_cursor = "no" # Change `color indicator` depending # mailcap set mailcap_path=~/.config/neomutt/mailcap # automatically open html in mime auto_view text/html # sidebar set sidebar_visible set sidebar_format = "%B%?F? [%F]?%* %?N?%N/?%S" set mail_check_stats set sidebar_width = 25 # Plenty of space set sidebar_divider_char = '│' # Pretty line-drawing character # connection information # This is should be config specifc not global # Keeping for reference # set header_cache = "$HOME/.config/neomutt/cache/headers/" # set message_cachedir = "$HOME/.config/neomutt/cache/bodies/" # set certificate_file = "$HOME/.config/neomutt/certificates/" # set tmpdir = "$HOME/.config/neomutt/tmp/" # Use GPGME set crypt_use_gpgme = yes # Sign replies to signed emails set crypt_replysign = yes # Encrypt replies to encrypted emails set crypt_replyencrypt = yes # Encrypt and sign replies to encrypted and signed email set crypt_replysignencrypted = yes # Attempt to verify signatures automatically set crypt_verify_sig = yes # Use my key for signing and encrypting set pgp_sign_as = 0xB0EB240706B442A7 macro compose \CP "Fgpg --clearsign\ny" macro compose \CS "Fgpg --clearsign\ny^T^Uapplication/pgp; format=text; x-action=sign\n" # Needs urlscan to be installed (pip install urlscan --user) macro index,pager \cb " urlscan" "call urlscan to extract URLs out of a message" macro attach,compose \cb " urlscan" "call urlscan to extract URLs out of a message" set alias_file="$HOME/.config/neomutt/aliases" source "$HOME/.config/neomutt/aliases" # Needs NerdFonts to be installed set index_format=" %zs %zc %zt | %-28.28L %?X?& ? %.46s %?M10?(%1M)&? %> %{!%a %d %h %H:%M} " set pager_format="\n %n %T %s%*  %{!%d %b · %H:%M} %?X? %X?%P   \n \n" set status_format = " %f %?r? %m ?%?n? %n ?%?d? %d ?%?t? %t ?%?F? %F ?%?p? %p? \n \n" set vfolder_format = "%N %?n?%3n& ? %8m  · %f" set attach_format = "%u%D  %T%-75.75d %?T?%& ? %5s · %m/%M" color status white default # powerline status bar hack color status color4 color0 '([a-zA-Z0-9])(\s)' color status color4 color0 '(\s)([a-zA-Z0-9])' color status color4 color0 '( )' color status color4 color0 '(\S)' color status color0 default '(|)' color status green color0 '' color status white color0 '' color status yellow color0 '' color status red color0 '' color tree color15 color0 # no addressed to me, to me, group, cc, sent by me, mailing list set to_chars="" # unchanged mailbox, changed, read only, attach mode set status_chars = " " ifdef crypt_chars set crypt_chars = " " set flag_chars = " " set hidden_tags = "unread,draft,flagged,passed,replied,attachment,signed,encrypted" tag-transforms "replied" "↻ " \ "encrytpted" "" \ "signed" "" \ "attachment" "" \ # The formats must start with 'G' and the entire sequence is case sensitive. tag-formats "replied" "GR" \ "encrypted" "GE" \ "signed" "GS" \ "attachment" "GA" \ ## ACCOUNT 1 source "~/.config/neomutt/suse" folder-hook $folder 'source ~/.config/neomutt/suse' # Macros for switching accounts macro index 'source $XDG_CONFIG_HOME/neomutt/suse' macro index 'source $XDG_CONFIG_HOME/neomutt/gmail_main' ## ACCOUNT 2 source "~/.config/neomutt/gmail_main" folder-hook $folder 'source ~/.config/neomutt/gmail_main'