summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrahmajit Das <brahmajit.xyz@gmail.com>2023-07-02 15:30:20 +0530
committerBrahmajit Das <brahmajit.xyz@gmail.com>2023-07-03 01:09:20 +0530
commit5745399290e1d253ec613d67d0e4a4e9406c8bb9 (patch)
treebdcae53408e1424bcc7076832264744b64640986
parente972e1588547e16c46874785e531bc1e9134b99a (diff)
neomutt: neomuttrc: moving tls and folder specific settings to configs
Don't keep them in global settings. Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
-rw-r--r--.config/neomutt/neomuttrc71
1 files changed, 63 insertions, 8 deletions
diff --git a/.config/neomutt/neomuttrc b/.config/neomutt/neomuttrc
index b0e170c..a86fe7b 100644
--- a/.config/neomutt/neomuttrc
+++ b/.config/neomutt/neomuttrc
@@ -6,11 +6,16 @@ set sendmail="/usr/bin/msmtp"
# keybindings
source "~/.config/neomutt/mappings"
+# color
+source "~/.config/neomutt/color"
+
set send_charset="utf-8"
# connection information
-set ssl_force_tls=yes
-unset ssl_starttls
+# 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"
@@ -39,10 +44,13 @@ set mail_check_stats
set sidebar_width = 25 # Plenty of space
set sidebar_divider_char = '│' # Pretty line-drawing character
-set header_cache = "~/.config/neomutt/cache/headers"
-set message_cachedir = "~/.config/neomutt/cache/bodies"
-set certificate_file = "~/.config/neomutt/certificates"
-set tmpdir = "~/.config/neomutt/tmp"
+# 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
@@ -59,10 +67,57 @@ 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 "<pipe-message> urlscan<Enter>" "call urlscan to extract URLs out of a message"
+
+macro attach,compose \cb "<pipe-entry> urlscan<Enter>" "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 2
+source "~/.config/neomutt/suse"
+folder-hook $folder 'source ~/.config/neomutt/suse'
+
## ACCOUNT 1
-source "~/.config/neomutt/gmail_main"
-folder-hook $folder 'source ~/.config/neomutt/gmail_main'
+#source "~/.config/neomutt/gmail_main"
+#folder-hook $folder 'source ~/.config/neomutt/gmail_main'