-
Notifications
You must be signed in to change notification settings - Fork 5
/
muttrc
39 lines (31 loc) · 1.18 KB
/
muttrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#! /usr/bin/mutt -RF
# make executable to open mutt read-only with this config
# sources / useful info:
# - http://www.elho.net/mutt/maildir/
# - https://jcs.org/notaweblog/2008/09/29/making_mutt_useful_offline
# - https://gitlab.com/muttmua/mutt/wikis/ConfigTricks
# enable threads and newest on top
set sort="threads"
set sort_aux="reverse-last-date-received"
# load user's muttrc if present
source `f=~/.muttrc; [ ! -s "$f" ] && echo /dev/null || echo "$f"`
source `f=~/.mutt/muttrc; [ ! -s "$f" ] && echo /dev/null || echo "$f"`
# unset drafts and sent handling, disable imap connections
unset postponed
unset record
set imap_passive="yes"
# use local imapfetch maildir archive
set mbox_type="Maildir"
set folder="./"
set mbox="+INBOX"
set spoolfile="+INBOX"
set read_only = yes
# cache headers for better performance in large maildirs
folder-hook . 'set read_inc=100'
set header_cache="header_cache"
# dynamically build list of maildir inboxes
mailboxes `find -type d -name cur -printf "+'%h' "`
macro index c "<change-folder>?<toggle-mailboxes>" "open a different folder"
macro pager c "<change-folder>?<toggle-mailboxes>" "open a different folder"
# open mailbox selection on launch
push 'c'