1
0
mirror of https://github.com/artizirk/dotfiles.git synced 2024-11-16 06:01:00 +02:00
dotfiles/.config/neomutt/neomuttrc

125 lines
4.1 KiB
Plaintext
Raw Normal View History

2019-03-08 13:42:04 +02:00
set realname="Arti Zirk"
set from=arti.zirk@gmail.com
2021-11-24 12:08:28 +02:00
#set imap_user=arti.zirk@gmail.com
#set imap_pass=PASSWORD
2021-11-22 23:07:00 +02:00
#source secrets
#set folder=imaps://imap.gmail.com/
2019-03-08 13:42:04 +02:00
2021-11-22 23:07:00 +02:00
set virtual_spoolfile=yes
set folder=~/Mail
#set spoolfile = +INBOX
2019-03-08 13:42:04 +02:00
#mailboxes = +INBOX
2021-11-22 23:07:00 +02:00
# subscribe to all imap folders
#set imap_check_subscribed
2019-03-08 13:42:04 +02:00
2020-10-21 19:02:25 +03:00
# NotMuch config
2021-11-24 12:08:28 +02:00
set vfolder_format = "%6n(%6N) %f"
2020-10-21 19:02:25 +03:00
set nm_default_url = "notmuch:///home/arti/Mail"
2021-11-24 12:08:28 +02:00
virtual-mailboxes "inbox" "notmuch://?query=tag:inbox"
virtual-mailboxes `for tag in $(notmuch search --output=tags '*'); do echo -ne \"$tag\" \"notmuch://\?query=tag:$tag\" ""; done`
2019-03-08 13:42:04 +02:00
# 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.
2021-11-22 23:07:00 +02:00
#set postponed = +[Gmail]/Drafts
2019-03-08 13:42:04 +02:00
# Allow Mutt to open a new IMAP connection automatically.
2021-11-24 12:08:28 +02:00
#unset imap_passive
2019-03-08 13:42:04 +02:00
# Keep the IMAP connection alive by polling intermittently (time in seconds).
2021-11-24 12:08:28 +02:00
#set imap_keepalive = 300
2019-03-08 13:42:04 +02:00
# How often to check for new mail (time in seconds).
2021-11-24 12:08:28 +02:00
#set mail_check = 120
2019-03-08 13:42:04 +02:00
2021-11-22 23:07:00 +02:00
# group by thread and sort
set sort=threads
set sort_aux=last-date-received
2021-11-24 12:08:28 +02:00
# --------------------------------------------------------------------------
# FUNCTIONS shown with an example mapping
# --------------------------------------------------------------------------
# open a different virtual folder
bind index,pager X change-vfolder
# read entire thread of the current message
bind index,pager + entire-thread
# generate virtual folder from query
bind index,pager \eX vfolder-from-query
# generate virtual folder from query with time window
#bind index < vfolder-window-backward
#bind index > vfolder-window-forward
# Ctrl-Shift-P Previous Mailbox
bind index,pager \CP sidebar-prev
# Ctrl-Shift-N Next Mailbox
bind index,pager \CN sidebar-next
# Ctrl-Shift-O Open Highlighted Mailbox
bind index,pager \CO sidebar-open
2021-11-24 14:16:32 +02:00
# from https://uttarayan.me/posts/setting-up-neomutt/
# Moving around
bind attach,browser,index g noop
bind attach,browser,index gg first-entry
bind attach,browser,index G last-entry
bind pager g noop
bind pager gg top
bind pager G bottom
bind pager k previous-line
bind pager j next-line
# Scrolling
# bind attach,browser,pager,index \CF next-page
# bind attach,browser,pager,index \CB previous-page
bind attach,browser,pager,index \Cu half-up
bind attach,browser,pager,index \Cd half-down
bind browser,pager \Ce next-line
bind browser,pager \Cy previous-line
bind index \Ce next-line
bind index \Cy previous-line
bind pager,index d noop
bind pager,index dd delete-message
# bind index \Cm list-reply # Doesn't work currently
# Threads
bind browser,pager,index N search-opposite
bind pager,index dT delete-thread
bind pager,index dt delete-subthread
bind pager,index gt next-thread
bind pager,index gT previous-thread
bind index za collapse-thread
bind index zA collapse-all # Missing :folddisable/foldenable
2019-03-08 13:42:04 +02:00
set sidebar_visible
2021-11-24 12:08:28 +02:00
set sidebar_format = "%D%?F? [%F]?%* %?N?%N/?%S"
2019-03-08 13:42:04 +02:00
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
2021-11-22 23:07:00 +02:00
# Use only 7bit ascii or utf-8
2019-03-08 13:42:04 +02:00
set send_charset="us-ascii:utf-8"
## COLORS
source colors