aboutsummaryrefslogtreecommitdiff
path: root/muttrc
blob: c5e44ca2e6df30343ef07fb48edb241cff60252c (plain)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
################# GENERAL ###################
set realname = 'Florian Fischer'

set my_cfgdir = $HOME/.mutt

set mbox_type = Maildir
set folder = ~/.local/share/maildir/

# 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

################ ACCOUNTS ####################
# default account
set my_account = "MUHQ"
source $my_cfgdir/accounts/$my_account

# when changing into other mailboxes, use different adresses etc.
folder-hook FAU/* source $my_cfgdir/accounts/FAU
folder-hook MUHQ/* source $my_cfgdir/accounts/MUHQ
folder-hook SNFMT/* source $my_cfgdir/accounts/SNFMT
folder-hook FISCHER-PAF/* source $my_cfgdir/accounts/FISCHER-PAF
folder-hook VOCOSMA/* source $my_cfgdir/accounts/VOCOSMA

# find all maildirs
mailboxes `find ~/.local/share/maildir/FAU -type d '(' -name 'cur' -o -name 'new' ')' -prune -printf '%h '`
mailboxes `find ~/.local/share/maildir/MUHQ -type d '(' -name 'cur' -o -name 'new' ')' -prune -printf '%h '`
mailboxes `find ~/.local/share/maildir/SNFMT -type d '(' -name 'cur' -o -name 'new' ')' -prune -printf '%h '`
mailboxes `find ~/.local/share/maildir/FISCHER-PAF -type d '(' -name 'cur' -o -name 'new' ')' -prune -printf '%h '`
mailboxes `find ~/.local/share/maildir/VOCOSMA -type d '(' -name 'cur' -o -name 'new' ')' -prune -printf '%h '`

############### GPG ########################

source ~/.mutt/gpg

set pgp_use_gpg_agent = yes

set crypt_replyencrypt = yes
set crypt_replysignencrypted=yes
set crypt_verify_sig=yes

############### MISC #######################

set sort=threads
set sort_aux=last-date-received
set collapse_all
unset collapse_unread

# forward all parts of a message
set mime_forward

# use khard as external adressbook
set query_command= "khard email --parsable %s"
bind editor <Tab> complete-query
bind editor ^T    complete

# use xdg-mime to determine mime types
set mime_type_query_command = "xdg-mime query filetype"

set mailcap_path = ~/.mutt/mailcap

############## COLOR #######################

# Patch syntax highlighting
# https://www.do-not-panic.com/2014/07/colored-diffs-with-mutt.html
color   normal  white           default
color   body    brightwhite     default         ^[[:space:]].*
color   body    brightwhite     default         ^(diff).*
color   body    white           default         ^[\-\-\-].*
color   body    white           default         ^[\+\+\+].*
color   body    green           default         ^[\+].*
color   body    red             default         ^[\-].*
color   body    brightblue      default         [@@].*
color   body    brightwhite     default         ^(\s).*
color   body    brightwhite     default         ^(Signed-off-by).*
color   body    brightwhite     default         ^(Cc)

source ~/.mutt/theme

############ STATUSBAR #####################

# status bar, date format, finding stuff etc.
set status_format="───%r %D [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]───(%s/%S)─%>─(%P)───"
set compose_format="─── Compose  [Approx. msg size: %l   Atts: %a]%>─"
set date_format = "%d.%m.%Y %H:%M"
set index_format = "[%Z] %?X?A&-? %D  %-20.20F  %s"

############# SIDEBAR ######################

set mail_check_stats # collect stats to show them in the sidebar

set sidebar_visible
set sidebar_folder_indent
set sidebar_width = 35
set sidebar_divider_char = ' | '
set sidebar_indent_string = ' '
set sidebar_format = "%B %* [%?N?%N / ?%S]"
set sidebar_non_empty_mailbox_only
set sidebar_sort_method = 'new'

############# BINDINGS #####################

source $my_cfgdir/bindings

############# MAILING LISTS ################

source $my_cfgdir/mailinglists

############# NOTMUCH ######################

source $my_cfgdir/notmuch