summaryrefslogtreecommitdiff
path: root/muttrc
blob: e100580363b99956290735a0950afadb3447fa87 (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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
# Store messages localy to speed things up.
set header_cache = /tmp/mutt-cache
set message_cachedir = /tmp/mutt-cache
set alias_file = ~/.mutt/aliases
source $alias_file

#set ssl_starttls = yes

set realname='Matias Linares'
source ~/.mutt/team-deprecated
folder-hook $folder 'source ~/.mutt/team-deprecated'

source ~/.mutt/opmbx
folder-hook $folder 'source ~/.mutt/opmbx'

set use_from=yes

#set ssl_force_tls = yes
# Don't wit to enter mailbox manually
unset imap_passive
# Reduce polling frequency
set net_inc=5

# timeouts
set mail_check=60
set imap_keepalive = 300
set timeout = 300

# Mailing lists
subscribe hlwm@lists.herbstluftwm.org
subscribe dev@suckless.org
subscribe arch-general@archlinux.org
subscribe arch-announce@archlinux.org
subscribe arch-dev-public@archlinux.org
subscribe dev@team-deprecated.org

# Misc.
#set pager_index_lines=5
set sort="threads"
set sort_aux = "reverse-last-date-received"
set editor="vim"

set signature = ~/.mutt/signature

# GPG
source ~/.mutt/gpg.rc
set pgp_sign_as = 7D7B9EF2
set pgp_timeout = 3600
set pgp_use_gpg_agent = yes
set crypt_verify_sig = yes
set crypt_autosign = yes
set crypt_replyencrypt = yes

# Sidebar settings
set sidebar_visible = yes
set sidebar_width = 30
set sidebar_sort = yes
#set sidebar_indentstr = '  '
#set sidebar_folderindent = yes
#set sidebar_shortpath = yes
#set sidebar_format="%B%?F? [%F]?%* %?N?%N/?%S"


# Headers
my_hdr X-Operating-System: Arch Linux, `uname -o` `uname -r`
my_hdr X-PGP-Key: http://www.famaf.unc.edu.ar/~mlm0111/pubkey.asc
my_hdr OpenPGP: id=7D7B9EF2\; \
url=http://www.famaf.unc.edu.ar/~mlm0111/pubkey.asc\; \
preference=signencrypt

# Vi-like keybindings
bind  generic        l select-entry
macro index          h '<change-folder>?'
bind  index,pager    H display-toggle-weed
bind  pager          h exit
bind  pager          j next-line
bind  pager          k previous-line
bind  pager          l view-attachments
bind  attach,compose l view-attach
bind  attach         h exit
bind  attach         H display-toggle-weed
bind  compose        l view-attach

macro index b '<enter-command>toggle sidebar_visible<enter><refresh>'
macro pager b '<enter-command>toggle sidebar_visible<enter><redraw-screen>'

# Ctrl-n, Ctrl-p to select next, previous folder.
# Ctrl-o to open selected folder.
bind index,pager \CP sidebar-prev
bind index,pager \CN sidebar-next
bind index,pager \CO sidebar-open


# Colours for items in the index

color index brightcyan default ~N
color index brightred default ~O
color index brightyellow default ~F
color index default green ~T
color index brightred default ~D
mono index bold ~N
mono index bold ~F
mono index bold ~T
mono index bold ~D

# Highlights inside the body of a message.

# URLs
color body brightgreen default "(http|ftp|news|telnet|finger)://[^ \"\t\r\n]*"
color body brightgreen default "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
mono body bold "(http|ftp|news|telnet|finger)://[^ \"\t\r\n]*"
mono body bold "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"

## Email addresses.
color body brightgreen default "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"

## Header
color header green default "^from:"
color header green default "^to:"
color header green default "^cc:"
color header green default "^date:"
color header yellow default "^newsgroups:"
color header yellow default "^reply-to:"
color header brightcyan default "^subject:"
color header red default "^x-spam-rule:"
color header green default "^x-mailer:"
color header yellow default "^message-id:"
color header yellow default "^Organization:"
color header yellow default "^Organisation:"
color header yellow default "^User-Agent:"
color header yellow default "^message-id: .*pine"
color header yellow default "^X-Fnord:"
color header yellow default "^X-WebTV-Stationery:"

color header red default "^x-spam-rule:"
color header green default "^x-mailer:"
color header yellow default "^message-id:"
color header yellow default "^Organization:"
color header yellow default "^Organisation:"
color header yellow default "^User-Agent:"
color header yellow default "^message-id: .*pine"
color header yellow default "^X-Fnord:"
color header yellow default "^X-WebTV-Stationery:"
color header yellow default "^X-Message-Flag:"
color header yellow default "^X-Spam-Status:"
color header yellow default "^X-SpamProbe:"
color header red default "^X-SpamProbe: SPAM"

## Coloring quoted text - coloring the first 7 levels:
color quoted cyan default
color quoted1 yellow default
color quoted2 red default
color quoted3 green default
color quoted4 cyan default
color quoted5 yellow default
color quoted6 red default
color quoted7 green default

## Default color definitions
#color hdrdefault white green

color signature brightmagenta default
color indicator brightwhite cyan
color attachment black cyan
color error red default
color message white default
color search brightwhite magenta
color status brightyellow blue
color tree brightblue default
color normal white default
color tilde green default
color bold brightyellow default
#color underline magenta default
color markers brightcyan default

## Colour definitions when on a mono screen
mono bold bold
mono underline underline
mono indicator reverse