aboutsummaryrefslogtreecommitdiffhomepage
path: root/mutt/muttrc.topo
blob: 974700bc0f293dac10bbf5497ee1cb01793150a2 (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
source ~/.config/mutt/default

# IMAP/SMTP settings
set folder = "imaps://pham@mail.topo.tw:993/"
set imap_pass = `pass pham@topo.tw`
set smtp_url = "smtp://pham@mail.topo.tw:587"
set smtp_pass = "$imap_pass"

# 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

# Tune contacts
source ~/.config/mutt/alias.topo
source ~/.config/mutt/hook.topo

# Basic Mailbox
set spoolfile = "+INBOX"
set mbox= "+mbox"
set move = yes
set record = "+Sent"
set trash = "+Trash"
set postponed = "+Drafts"

# Sidebar
unmailboxes *
mailboxes =INBOX =mbox =DeltaChat "+------ Watch ------" =hometeach =pay =osm =keep "+---- Processed ----" =Sent =Trash =Drafts =test =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>+INBOX<Return>" "Switch to INBOX folder"
macro index,pager           gm      "<change-folder>+mbox<Return>" "Switch to mbox folder"
macro index,pager           gp      "<change-folder>+pay<Return>" "Switch to pay folder"
macro index,pager           gh      "<change-folder>+hometeach<Return>" "Switch to hometeach 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           gd      "<change-folder>+DeltaChat<Return>" "Switch to DeltaChat folder"
macro index,pager           gD      "<change-folder>+Drafts<Return>" "Switch to Drafts folder"
macro index,pager           gt      "<change-folder>+Trash<Return>" "Switch to Trash folder"