summaryrefslogtreecommitdiffstats
path: root/.muttrc
blob: d28545ed3425ee0cc0e0f72c529bb09dfa0eb149 (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
180
181
182
183
# compilation of many sources, still quite a mess

#
# general
#

set mbox_type=Maildir

# dont mark messages old
set nomark_old

set move=no

set quote_regexp="^([A-Za-z ]+>|[]%>:|}-][]>:|}-]*)"

# just scroll one line instead of full page (Gentoo howto)
set menu_scroll=yes

# http://www.mail-archive.com/mutt-users@mutt.org/msg44341.html
# Real default: "-%Z- %C/%m: %-20.20n   %s%*  -- (%P)"
#set pager_format="%4C %Z %[!%b %e at %I:%M %p]  %.20n  %s%* -- (%P)"
set pager_format="%Z[%b] %[!%b %e at %I:%M %p] %C/%m: %-20.20n   %s%*  -- (%P)"

# http://www.michnet.de/mutt/
# Also very useful in pager mode (even the number of scrolling lines can be set):
set pager_context="1"
#
# # Mutt can split the screen into halves, so you can watch index + pager simultaneously:
set pager_index_lines="5"
#
# # Don't jump to next message when at bottom of current message:
set pager_stop="yes"

set index_format   = "%4C %Z %{%b %d} %-15.15F (%4l) %s"
set date_format="%d/%m/%y %H:%M %Z"


#
# general - dirs and files
#

set folder    = ~/Maildir
set spoolfile = ~/Maildir/INBOX
set record    = ~/Maildir/Sent
set tmpdir    = ~/.mutt/temp

# keep a cache of headers for faster loading (1.5.9+?)
set header_cache=~/.mutt/hcache


#
# general - headers
#

ignore *
unignore From To Cc Subject Date Reply-To Organization X-Mailer User-Agent

# Order to display the headers in
hdr_order From: Date: To: Cc: Subject:

set edit_headers


#
# listing
#

# sort by thread
set sort = threads; set sort_aux=reverse-date

# mark messages as read (http://blog.jwcxz.com/?p=810)
#macro index <Esc>m "T~N<enter>;WNT~O<enter>;WO\CT~A<enter>" "mark all messages read"
macro index <Esc>m "T~N<enter>;WNT~O<enter>;WO" "mark all messages read"


# listing - mutt-notmuch

macro index <F8> \
      "<enter-command>unset wait_key<enter><shell-escape>notmuch-mutt --prompt search<enter><change-folder-readonly>~/.cache/notmuch/mutt/results<enter>" \
      "notmuch: search mail"
macro index <F9> \
      "<enter-command>unset wait_key<enter><pipe-message>notmuch-mutt thread<enter><change-folder-readonly>~/.cache/notmuch/mutt/results<enter><enter-command>set wait_key<enter>" \
      "notmuch: reconstruct thread"


#
# composing
#

set signature = "~/.mutt/sig"
# also there is ~/.mutt/intro

#set format=flowed
set notext_flowed

# Automatically quote message
set include=yes

# Set quotemark to 1 byte
set indent_str="> "

# Skip the bothering prompt for recipient and subject when replying and start immediately with writing your message:
set fast_reply="yes"

set forward_format="Fw: %s"     # subject in forwarded messages

# Use vim as the editor - this line will wrap
# Set wordwrap on in vim to automatically wrap lines
# -> no :gq all the time
set editor="vim +':set textwidth=70' +':set wrap' +\":1,\$ s/^\\([>|]\\s\\?\\)\\+/\\=substitute(submatch(0),\'\\s\',\'\',\'g\').\' \'\" +:noh +\`awk '/^$/ {print i+1; exit} {i++}' %s\` +':r~/.mutt/intro' %s"


#
# sending
#

set hostname="redhat.com"
set realname="Jan Pokorný"
set from="jpokorny@redhat.com"

# force envelope and sender
set use_from
set envelope_from

set send_charset="us-ascii:utf-8"

# set user_agent=no

# dammit mutt, forward mime attachments by default and yes im aware SMTP is not an FTP client - shutup
set mime_forward=yes
set mime_forward_rest=yes


#
# jpokorny's tweaks
#

# view html emails
# https://bbs.archlinux.org/viewtopic.php?pid=1123469
alternative_order text/enriched text/plain text/html text
auto_view text/html

# LDAP
set query_command = "lbdbq %s 2>/dev/null"

# urlview
macro pager \cu <pipe-entry>'urlview'<enter> 'Follow links with urlview'


#
# I/O bits
#

set smtp_url="smtp://smtp.corp.redhat.com"
set sendmail="/usr/sbin/sendmail"

# activate TLS if available on the server
set ssl_starttls=yes
# always use SSL when connecting to a server
set ssl_force_tls=yes
# Don't wait to enter mailbox manually
unset imap_passive
# Automatically poll subscribed mailboxes for new mail (new in 1.5.11)
set imap_check_subscribed
# Reduce polling frequency to a sane level
## trobert banhammer
##set mail_check=60
set mail_check=300
# And poll the current mailbox more often (not needed with IDLE in post 1.5.11)
set timeout=10

# Display download progress every 5K
set net_inc=5


#
# imports
#

source ~/.mutt/folders
#source ~/.mutt/gpg
source ~/.mutt/solarize
source ~/.mutt/sidepane