summaryrefslogtreecommitdiffstats
path: root/.mutt/muttrc
blob: d79bd4421b48c41a42079e0736a24552fe96e0e1 (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
# three mail accounts; use folder hooks to switch between them
folder-hook 'jmccrohan@gmail.com' source ~/.mutt/accounts/jmccrohan@mail.com/muttrc
folder-hook 'jmccroha@tcd.ie' source ~/.mutt/accounts/jmccroha@tcd.ie/muttrc
folder-hook 'jonathan@mccrohan.ie' source ~/.mutt/accounts/jonathan@mccrohan.ie/muttrc
macro index,pager <f2> '<sync-mailbox><enter-command>source ~/.mutt/accounts/jmccrohan@gmail.com/muttrc<enter><change-folder>!<enter>'
macro index,pager <f3> '<sync-mailbox><enter-command>source ~/.mutt/accounts/jmccroha@tcd.ie/muttrc<enter><change-folder>!<enter>'
macro index,pager <f4> '<sync-mailbox><enter-command>source ~/.mutt/accounts/jonathan@mccrohan.ie/muttrc<enter><change-folder>!<enter>'

# switch to default account on startup
source ~/.mutt/accounts/jmccrohan@gmail.com/muttrc

# common settings
set sort = threads
set sort_aux = reverse-last-date-received
alternative_order text/enriched text/plain text/html 
auto_view text/html
set move = no  # leave messages where they are
set recall = no # don't ask about drafts when composing
bind editor <space> noop

# mutt-patched sidebar
set sidebar_visible sidebar_width=25
bind index,pager \CP sidebar-prev
bind index,pager \CN sidebar-next
bind index,pager \CO sidebar-open
macro index \Cb '<enter-command>toggle sidebar_visible<enter><refresh>'
macro pager \Cb '<enter-command>toggle sidebar_visible<enter><redraw-screen>'

# common mailbox settings
set realname = "Jonathan McCrohan"
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
set postpone = yes # save drafts
set postponed ="+[Google Mail]/Drafts"
set trash = "imaps://imap.gmail.com/[Google Mail]/All Mail" # archive rather than delete
set imap_idle
unset imap_passive
unset imap_peek
set imap_keepalive = 900
set mail_check=90

mailboxes =INBOX
mailboxes ="[Google Mail]/Starred"
mailboxes ="[Google Mail]/Sent Mail"
mailboxes ="[Google Mail]/Drafts"
mailboxes ="[Google Mail]/All Mail"
mailboxes ="[Google Mail]/Spam"
mailboxes ="[Google Mail]/Bin" # Bin if en-uk, Trash if en-us

# crypto (gpgme) settings
set crypt_use_gpgme
set pgp_sign_as=0x37AD3296
set crypt_autosign=yes
set crypt_replysign = yes
set crypt_replyencrypt = yes
set crypt_replysignencrypted = yes
set crypt_replyencrypt=yes
set crypt_verify_sig = yes
set pgp_auto_decode=yes
set pgp_use_gpg_agent = yes

# set Vi-like bindings
bind index,pager \Cu half-up
bind index,pager \Cd half-down
bind generic,index,browser,pager \Cf next-page
bind generic,index,browser,pager \Cb previous-page