summaryrefslogtreecommitdiff
path: root/mutt/muttrc
blob: 01122af4e06f9d4eb73656c0cdda39c88a751009 (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
# General information
set from             = "u.vaes13@imperial.ac.uk"
set realname         = "Urbain Vaes"
set use_from         = yes
set envelope_from    = "yes"

# Folders
set folder = "~/.mail"
set folder           = ~/.mail
set alias_file       = ~/.mutt/alias
set header_cache     = ~/.mutt/cache/headers
set message_cachedir = ~/.mutt/cache/bodies
set certificate_file = ~/.mutt/certificates
set mailcap_path     = ~/.mutt/mailcap
set tmpdir           = ~/.mutt/temp
set signature        = ~/.mutt/sig

# Maildirs
set spoolfile = "+Main/Main"
set record    = "+Main/Sent"
set postponed = "+Main/Drafts"

# Status Bar
set status_chars  = " *%A"
set status_format = "───( Folder: %f )───(%r%m messages%?n? (%n new)?%?d?\
                     (%d to delete)?%?t? (%t tagged)? )───%>─%?p?( %p postponed )?───"

# Headers
ignore *
unignore from: to: cc: date: subject:
unhdr_order *
hdr_order from: to: cc: date: subject:

# Mailboxes
mailboxes +Main/Main \
          +Imperial/Imperial \
          +Hotmail/Hotmail \
          +Gmail/Gmail \
          +Main/Sent \
          +Main/Drafts \

# Encryption
source /usr/share/doc/mutt/examples/gpg.rc
set pgp_use_gpg_agent = yes
set pgp_sign_as = 08AC6A48
set pgp_timeout = 3600
set crypt_autosign = no
set crypt_replyencrypt = yes
set fcc_clear = yes

# Pager
set pager_index_lines = 10 # number of index lines to show
set pager_context = 3      # number of context lines to show
set pager_stop             # don't go to next message automatically
set menu_scroll            # scroll in menus
set tilde                  # show tildes like in vim
unset markers              # no ugly plus signs
set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
alternative_order text/plain text/enriched text/html

# Email editing
set editor="vim"
set edit_headers
set include=yes

# Mail out
set sendmail="/usr/sbin/ssmtp"

# Sorting options
set sort         = threads
set sort_aux     = reverse-last-date-received
set sort_browser = reverse-date

# Colorscheme for inside mutt
source `sh /home/urbain/.mutt/colormutt`

# HTML messages
auto_view text/html

# Key bindings
bind generic l select-entry

bind index,browser g top-page
bind index,browser GG bottom-page
bind pager,index,browser \Cb previous-page
bind pager,index,browser \Cf next-page

bind index gg first-entry
bind index G last-entry

## Bindings
# Generic
bind generic l select-entry
bind generic <right> select-entry

# Index
bind index l display-message
bind index h change-folder
bind index <right> display-message
bind index <left> change-folder
bind index H display-toggle-weed
macro index , '<change-folder>!^M'
macro index I '<tag-pattern>~N^M<tag-prefix><toggle-new><tag-prefix><tag-entry>'

#       Pager
bind    pager   j         next-line
bind    pager   k         previous-line
bind    pager   h         exit
bind    pager   l         view-attachments
bind    pager   <down>    next-line
bind    pager   <up>      previous-line
bind    pager   <left>    exit
bind    pager   <right>   view-attachments
bind    pager   H         display-toggle-weed
macro   pager   ,         '<change-folder>!^M'

# Attach 
bind   attach   l         view-attach
bind   attach   <right>   view-attach
bind   attach   h         exit
bind   attach   <left>    exit
bind   attach   H         display-toggle-weed

# Compose
bind   compose   l         view-attach
bind   compose   <right>   view-attach

# Sidebar Navigation ---------------------------------
bind   index,pager J sidebar-next
bind   index,pager K sidebar-prev
bind   index,pager O sidebar-open

set reverse_alias
alias krystle Krystle Acquah <krystle.acquah-arhin13@imperial.ac.uk>
alias khoi Khoi Nguyen <khoi@member.fsf.org>
alias me Urbain Vaes <urbainvaes90@gmail.com>
alias amanda Amanda Diez <amanda.diez10@imperial.ac.uk>
alias vaes Christophe & Nathalies Vaes  <vaesvdb@gmail.com>
alias greg Supervisor <g.pavliotis@imperial.ac.uk>