source ~/.config/mutt/default # IMAP/SMTP settings set my_user = "pham@mail.topo.tw"; setenv my_user "$my_user" set folder = "imaps://$my_user:993/" set smtp_url = "smtp://$my_user:587" set imap_pass = `pass mail/$my_user` 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 set autocrypt = yes # Tune contacts set display_filter = ~/.config/mutt/message_filter.sh source ~/.config/mutt/alias.topo source ~/.config/mutt/hooks.topo # Basic Mailbox set spoolfile = "+INBOX" set mbox= "+mbox" set move = yes set record = "+Sent" set trash = "+Trash" set postponed = "+Drafts" set mask="!(INBOX|mbox|Sent|Trash|Drafts|DeltaChat|hometeach|osm|arch-general|mutt-users|bash|STOCK|pay|keep|login|update|test|spam)" # Sidebar mailboxes +INBOX \ +mbox \ -label DC +DeltaChat \ "+---- Watch -----" \ +hometeach \ +osm \ -label Arch +arch-general \ -label Mutt +mutt-users \ -label Bash +bash \ +STOCK \ +feedback \ "+-- Permanent ---" \ +pay \ +keep \ +login \ +update \ +Sent \ +Drafts \ -poll +Trash \ +test \ +spam # Keybinding macro index,pager 'source ~/.config/mutt/muttrc.topo!' macro index,pager 'source ~/.config/mutt/muttrc.gmail!' macro index,pager 'source ~/.config/mutt/muttrc.b97602041!' # 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 "+INBOX" "Switch to INBOX folder" macro index,pager gj "+japan" macro index,pager gm "+mbox" "Switch to mbox folder" macro index,pager gp "+pay" "Switch to pay folder" macro index,pager gh "+hometeach" "Switch to hometeach folder" macro index,pager gs "+Sent" "Switch to Sent folder" macro index,pager gS "+spam" "Switch to spam folder" macro index,pager gd "+DeltaChat" "Switch to DeltaChat folder" macro index,pager gD "+Drafts" "Switch to Drafts folder" macro index,pager gt "+Trash" "Switch to Trash folder" macro index,pager gl "+login" "Switch to INBOX folder" macro index,pager ga "+arch-general" "Switch to INBOX folder" macro index,pager gk "+keep" "Switch to INBOX folder"