aboutsummaryrefslogtreecommitdiffhomepage
path: root/mutt/muttrc.topo
blob: 49293d390de5ba77f98df1e474be49ef41c06b10 (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
# Identify meself
set from = "pham@topo.tw"
set realname = "謝晉凡 Hsieh Chin Fan"
set signature = "~/.config/mutt/.signature"
set pgp_use_gpg_agent = yes
set crypt_use_gpgme = yes
set pgp_timeout = 300
set pgp_sign_as = 6DD8C14A # replace 6DD8C14A with your gpg key id
set autocrypt = yes

# For contacts
set display_filter = ~/.config/mutt/message_filter.sh
source ~/.config/mutt/alias.topo
source ~/.config/mutt/hooks.topo

## Basic Mailbox
set spoolfile = "+"
set mbox= "+mbox"
set move = yes
set record = "+Sent"
set trash = "+Trash"
set postponed = "+Drafts"
set mask="!(tmp|new|cur|dovecot.*|\\..*|maildirfolder)"

# Sidebar
mailboxes   +do +box +done \
            +JOB \
            +promotion \
            "+-- Permanent ---" \
            -label '[p]ay 💲' +pay \
            -label '[t]alk 🍺' +talk \
            -label 'de[v]' +dev \
            -label '[s]ent 📤' +Sent \
            -label '[k]eep' +keep \
            -label '[f]eedback 📢' +feedback \
            -label '[T]rash 🗑' -poll +Trash \
            -label '[l]ogin' +login \
            +update \
            +service \
            +Drafts \
            +spam

# Keybinding
macro index,pager <f4> '<sync-mailbox><enter-command>source ~/.config/mutt/muttrc.topo<enter><change-folder>!<enter>'
macro index,pager <f2> '<sync-mailbox><enter-command>source ~/.config/mutt/muttrc.gmail<enter><change-folder>!<enter>'
macro index,pager <f3> '<sync-mailbox><enter-command>source ~/.config/mutt/muttrc.b97602041<enter><change-folder>!<enter>'

# Hooks for accounts
#folder-hook imaps://imap.gmail.com/ 'source ~/.config/mutt/muttrc.gmail'
#folder-hook ~/Maildir 'source ~/.config/mutt/muttrc.b97602041'

# Change mailboxes
macro index,pager   gi      "<change-folder>+<Return>" "Switch to INBOX folder"
macro index,pager   gd      "<change-folder>+do<Return>"
macro index,pager   gb      "<change-folder>+box<Return>"
macro index,pager   gt      "<change-folder>+talk<Return>" "Switch to Trash folder"

macro index,pager   gs      "<change-folder>+Sent<Return>" "Switch to Sent folder"
macro index,pager   gS      "<change-folder>+spam<Return>" "Switch to spam folder"
macro index,pager   gk      "<change-folder>+keep<Return>" "Switch to keep folder"

macro index,pager   gp      "<change-folder>+pay<Return>" "Switch to pay folder"
macro index,pager   gP      "<change-folder>+promote<Return>" "Switch to promotion folder"
macro index,pager   gT      "<change-folder>+Trash<Return>" "Switch to Trash folder"
macro index,pager   gl      "<change-folder>+login<Return>" "Switch to login folder"
macro index,pager   gu      "<change-folder>+update<Return>" "Switch to update folder"
macro index,pager   gf      "<change-folder>+feedback<Return>" "Switch to feedback folder"
macro index,pager   gj      "<change-folder>+JOB<Return>"
macro index,pager   gv      "<change-folder>+dev<Return>"