From 966ae11d79e044a67c0b8dac875a62ccf1fba059 Mon Sep 17 00:00:00 2001 From: Arti Zirk Date: Mon, 22 Nov 2021 23:07:00 +0200 Subject: [PATCH] hack with mutt and notmuch --- .config/neomutt/neomuttrc | 20 +++++++++--- .config/neomutt/neomuttrc_backup | 54 ++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+), 5 deletions(-) create mode 100644 .config/neomutt/neomuttrc_backup diff --git a/.config/neomutt/neomuttrc b/.config/neomutt/neomuttrc index bdb97ea..9817217 100644 --- a/.config/neomutt/neomuttrc +++ b/.config/neomutt/neomuttrc @@ -2,13 +2,18 @@ set realname="Arti Zirk" set from=arti.zirk@gmail.com set imap_user=arti.zirk@gmail.com # set imap_pass=PASSWORD -source secrets -set folder=imaps://imap.gmail.com/ +#source secrets +#set folder=imaps://imap.gmail.com/ -set spoolfile = +INBOX +set virtual_spoolfile=yes +set folder=~/Mail +virtual-mailboxes "inbox" "notmuch://?query=tag:inbox" + +#set spoolfile = +INBOX #mailboxes = +INBOX -set imap_check_subscribed +# subscribe to all imap folders +#set imap_check_subscribed # NotMuch config set nm_default_url = "notmuch:///home/arti/Mail" @@ -23,7 +28,7 @@ set header_cache = ~/.cache/mutt/headers set message_cachedir = "~/.cache/mutt" # Specify where to save and/or look for postponed messages. -set postponed = +[Gmail]/Drafts +#set postponed = +[Gmail]/Drafts # Allow Mutt to open a new IMAP connection automatically. unset imap_passive @@ -34,6 +39,10 @@ set imap_keepalive = 300 # How often to check for new mail (time in seconds). set mail_check = 120 +# group by thread and sort +set sort=threads +set sort_aux=last-date-received + set sidebar_visible set sidebar_format = "%B%?F? [%F]?%* %?N?%N/?%S" set sidebar_divider_char = '█' @@ -47,6 +56,7 @@ set sidebar_indent_string=" " # Indent with two spaces color progress white red +# Use only 7bit ascii or utf-8 set send_charset="us-ascii:utf-8" diff --git a/.config/neomutt/neomuttrc_backup b/.config/neomutt/neomuttrc_backup new file mode 100644 index 0000000..bdb97ea --- /dev/null +++ b/.config/neomutt/neomuttrc_backup @@ -0,0 +1,54 @@ +set realname="Arti Zirk" +set from=arti.zirk@gmail.com +set imap_user=arti.zirk@gmail.com +# set imap_pass=PASSWORD +source secrets +set folder=imaps://imap.gmail.com/ + +set spoolfile = +INBOX +#mailboxes = +INBOX + +set imap_check_subscribed + +# NotMuch config +set nm_default_url = "notmuch:///home/arti/Mail" + +# Store message headers locally to speed things up. +# If hcache is a folder, Mutt will create sub cache folders for each account which may speeds things up even more. +set header_cache = ~/.cache/mutt/headers + +# Store messages locally to speed things up, like searching message bodies. +# Can be the same folder as header_cache. +# This will cost important disk usage according to your e-mail amount. +set message_cachedir = "~/.cache/mutt" + +# Specify where to save and/or look for postponed messages. +set postponed = +[Gmail]/Drafts + +# Allow Mutt to open a new IMAP connection automatically. +unset imap_passive + +# Keep the IMAP connection alive by polling intermittently (time in seconds). +set imap_keepalive = 300 + +# How often to check for new mail (time in seconds). +set mail_check = 120 + +set sidebar_visible +set sidebar_format = "%B%?F? [%F]?%* %?N?%N/?%S" +set sidebar_divider_char = '█' +set mail_check_stats +set sidebar_short_path # Shorten mailbox names +set sidebar_delim_chars="/" # Delete everything up to the last / character +set sidebar_folder_indent # Indent folders whose names we've shortened +set sidebar_indent_string=" " # Indent with two spaces + + +color progress white red + + +set send_charset="us-ascii:utf-8" + + +## COLORS +source colors