summaryrefslogtreecommitdiff
path: root/mutt/.mutt/muttrc
blob: 356a5a804a8c6c7c5d02789b915c7d1fb094ad27 (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
# Folders
set folder = ~/.mail
set alias_file = ~/.mutt/alias
set header_cache = ~/.mutt/cache/headers
set message_cachedir = ~/.mutt/cache/bodies
set mailcap_path = ~/.mutt/mailcap
set tmpdir = ~/.mutt/temp

# Source crypto, aliases, mailboxes
source ~/.mutt/colors.muttrc
source ~/.mutt/crypto
source ~/.mutt/alias
source ~/.mutt/mailboxes
source ~/.mutt/id_inria

# General
set realname = "Urbain Vaes"
set from = "Urbain Vaes"
set reverse_alias
set sort = reverse-date
# set sort = reverse-threads
# set sort_aux = last-date-received
set weed
set abort_nosubject=no
unset markers
set sleep_time = 0
set wait_key = no
set charset = utf-8

# Encryption
set crypt_autosign = no
set crypt_replyencrypt = yes
set pgp_auto_decode = yes
set pgp_autosign = no
set pgp_sign_as = 716064C0
set pgp_use_gpg_agent = yes
set pgp_timeout = 3600

# Sidebar
set sidebar_visible = yes
set sidebar_width=25
set sidebar_short_path = yes
set sidebar_folder_indent = yes
set sidebar_indent_string = " "
set sidebar_format = "%B%* %?F?[%F]?%?N?(%N)?%4S"
set mail_check_stats
bind index,pager \Cn sidebar-next
bind index,pager \Cp sidebar-prev
bind index,pager O sidebar-open

# Prompts
set delete = yes
set quit = yes
set confirmappend = no

# Pager
set pager_stop
set pager_index_lines = 10

# HTML messages
auto_view text/html
alternative_order text/plain text/enriched text/html

# Editor
set editor="$EDITOR"
set include=yes

# Index
set index_format="%4C %X %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s"

# Macros
macro index,pager gp "<change-folder> +Personal/Personal<enter>"
macro index,pager ge "<change-folder> +Enpc/Enpc<enter>"
macro index,pager gi "<change-folder> +Inria/Inria<enter>"
macro index,pager go "<change-folder> +Imperial/Imperial<enter>"
macro pager u "<pipe-message>urlview\n"

# Key bindings
bind attach <return> view-mailcap

bind index,pager j next-entry
bind index,pager k previous-entry
bind index,pager \Cf next-page
bind index,pager \Cb previous-page
bind index,pager \Cu next-unread-mailbox

bind index A create-alias
bind index gg first-entry
bind index G last-entry
bind index i flag-message

bind pager \Ce next-line
bind pager \Cy previous-line
bind pager j next-entry
bind pager k previous-entry
bind pager R group-reply

# Attachment
macro compose \CA "!mutt_attach\n"

# Flow text
# set text_flowed # Bug with this setting '>' instead of '> '

# Hooks
folder-hook 'Enpc*' 'source ~/.mutt/id_enpc'
folder-hook 'Inria*' 'source ~/.mutt/id_inria'
folder-hook 'Imperial*' 'source ~/.mutt/id_imperial'
folder-hook 'Personal*' 'source ~/.mutt/id_personal'

macro index,pager gr "<change-folder> +Misc/rss<enter>"
macro index,pager gl "<change-folder> +Misc/lists<enter>"
folder-hook 'Misc/rss|Misc/lists' 'unset trash; unset from'

# Identities
set reverse_name
alternates ".*@vaes.uk"

# HTML email
macro compose 5 "F $HOME/.mutt/filter<enter>y^T^Utext/html; charset=utf-8<enter><enter>"

set signature="$HOME/.mutt/signature"
# vim: ft=muttrc