refactor(mail): rename all instances of 'gmail' with new provider

This commit is contained in:
George Rawlinson 2018-07-24 14:39:33 +12:00
parent 95c2d0525f
commit 91afb9e2aa
5 changed files with 32 additions and 32 deletions

View file

@ -1,23 +0,0 @@
# clear previously defined mailboxes
#unmailboxes *
set mbox = "+gmail/Archive"
set postponed = "+gmail/Drafts"
set trash = "+gmail/Trash"
unset record # gmail automatically records outgoing emails
set realname = "George Rawlinson"
set from = "george@rawlinson.net.nz"
# smtp settings
set smtp_pass= `pass mail/george@rawlinson.net.nz`
set smtp_url=smtp://$from@smtp.gmail.com:587
# gmail specific macros
macro index A "<save-message>+gmail/Archive<enter>" "move message to the archive"
macro index S "<save-message>+gmail/Spam<enter>" "mark message as spam"
macro index D "<save-message>+gmail/Trash<enter>" "move message to the trash"
# tag macros
macro index \Ca "<tag-prefix-cond><save-message>+gmail/Archive<enter>" "move tagged messages to archive"
macro index \Cs "<tag-prefix-cond><save-message>+gmail/Spam<enter>" "move tagged messages to spam"
macro index \Cd "<tag-prefix-cond><save-message>+gmail/Trash<enter>" "move tagged messages to trash"

View file

@ -0,0 +1,23 @@
# clear previously defined mailboxes
#unmailboxes *
set mbox = "+rawlinson/Archive"
set postponed = "+rawlinson/Drafts"
set trash = "+rawlinson/Trash"
set record = "+rawlinson/Sent"
set realname = "George Rawlinson"
set from = "george@rawlinson.net.nz"
# smtp settings
set smtp_pass= `pass mail/george@rawlinson.net.nz`
set smtp_url=smtp://$from@rawlinson.io:587
# rawlinson specific macros
macro index A "<save-message>+rawlinson/Archive<enter>" "move message to the archive"
macro index S "<save-message>+rawlinson/Spam<enter>" "mark message as spam"
macro index D "<save-message>+rawlinson/Trash<enter>" "move message to the trash"
# tag macros
macro index \Ca "<tag-prefix-cond><save-message>+rawlinson/Archive<enter>" "move tagged messages to archive"
macro index \Cs "<tag-prefix-cond><save-message>+rawlinson/Spam<enter>" "move tagged messages to spam"
macro index \Cd "<tag-prefix-cond><save-message>+rawlinson/Trash<enter>" "move tagged messages to trash"

View file

@ -1,5 +1,5 @@
# folder hooks for different accounts # folder hooks for different accounts
folder-hook gmail/* source ~/.config/mutt/accounts/gmail folder-hook rawlinson/* source ~/.config/mutt/accounts/rawlinson
folder-hook nullpointer/* source ~/.config/mutt/accounts/nullpointer folder-hook nullpointer/* source ~/.config/mutt/accounts/nullpointer
source ~/.config/mutt/accounts/gmail # default account source ~/.config/mutt/accounts/rawlinson # default account

View file

@ -1,9 +1,9 @@
mailboxes = +gmail/INBOX \ mailboxes = +rawlinson/INBOX \
+gmail/Archive \ +rawlinson/Archive \
+gmail/Drafts \ +rawlinson/Drafts \
+gmail/Sent \ +rawlinson/Sent \
+gmail/Spam \ +rawlinson/Junk \
+gmail/Trash \ +rawlinson/Trash \
+nullpointer/INBOX \ +nullpointer/INBOX \
+nullpointer/Archive \ +nullpointer/Archive \
+nullpointer/Drafts \ +nullpointer/Drafts \

View file

@ -17,7 +17,7 @@ set beep_new # beep when new mail received
# mailbox # mailbox
set mbox_type = Maildir # mailbox format set mbox_type = Maildir # mailbox format
set folder = ~/.mail # mailbox storage directory set folder = ~/.mail # mailbox storage directory
set spoolfile = "+gmail/INBOX" # default mailbox set spoolfile = "+rawlinson/INBOX" # default mailbox
# ssl configuration # ssl configuration
set ssl_starttls # use STARTTLS if not set set ssl_starttls # use STARTTLS if not set