commit 5bf07f79bbff6162506a30fe5a84357264a78114
parent 5381b92c4f2ab55293b6e574bfa9702e9a54cfa6
Author: Anders Damsgaard <andersd@riseup.net>
Date: Tue, 13 Mar 2018 10:21:01 -0400
Add mutt configuration for adamsgaard account
Diffstat:
1 file changed, 21 insertions(+), 10 deletions(-)
diff --git a/links/.mutt/muttrc b/links/.mutt/muttrc
@@ -1,12 +1,19 @@
# IMAP: offlineimap
set folder = "~/Mail"
source ~/.mutt/mailboxes # mailboxes generated by offlineimap
-set spoolfile = "+riseup/INBOX"
+set spoolfile = "+adamsgaard/INBOX"
set mbox_type=Maildir
unset move # do not move messages from IMAP folders if Mutt is used for IMAP
# Account-specific settings
+folder-hook adamsgaard 'set \
+ from="Anders Damsgaard <anders@adamsgaard.dk> "\
+ realname="Anders Damsgaard"\
+ record=+adamsgaard/Sent\
+ postponed=+adamsgaard/Drafts\
+ sendmail = "msmtp -a adamsgaard"'
+
folder-hook riseup 'set \
from="Anders Damsgaard <andersd@riseup.net> "\
realname="Anders Damsgaard"\
@@ -54,7 +61,7 @@ folder-hook noaa 'set \
# ignore own e-mail addresses from group-reply
-alternates adamsgaard@ucsd.edu|adamsgaard@mail.ucsd.edu|andersd@risuep.net|andersdc@gmail.com|adc@geo.au.dk|anders.damsgaard@geo.au.dk|andersd@princeton.edu|andersd@exchange.Princeton.EDU|anders.damsgaard@noaa.gov
+alternates anders@adamsgaard.dk|adamsgaard@ucsd.edu|adamsgaard@mail.ucsd.edu|andersd@risuep.net|andersdc@gmail.com|adc@geo.au.dk|anders.damsgaard@geo.au.dk|andersd@princeton.edu|andersd@exchange.Princeton.EDU|anders.damsgaard@noaa.gov
# Cache files
set header_cache=~/.mutt/cache/headers
@@ -150,11 +157,11 @@ macro index \ f "l~F<enter>" "Show only flagged messages"
# Macros to change between inboxes (e.g. SPACE 1), use noop editor to accept
# IMAP folders with spaces
bind editor <space> noop
-macro index \ 1 "<change-folder>=riseup/INBOX/<enter>" "Go to Riseup inbox"
-macro index \ u "<change-folder>=riseup/Spam.unsure/<enter>" "Go to Riseup/Spam.unsure"
-macro index \ a "<change-folder>=riseup/academic-alerts/<enter>" "Go to Riseup/academic-alerts"
-macro index \ s "<change-folder>=riseup/Spam/<enter>" "Go to Riseup/Spam"
-macro index \ ! "<change-folder>=riseup/Sent/<enter>" "Go to Riseup sent"
+macro index \ 1 "<change-folder>=adamsgaard/INBOX/<enter>" "Go to adamsgaard inbox"
+macro index \ u "<change-folder>=adamsgaard/Spam.unsure/<enter>" "Go to adamsgaard/Spam.unsure"
+macro index \ a "<change-folder>=adamsgaard/academic-alerts/<enter>" "Go to adamsgaard/academic-alerts"
+macro index \ s "<change-folder>=adamsgaard/Spam/<enter>" "Go to adamsgaard/Spam"
+macro index \ ! "<change-folder>=adamsgaard/Sent/<enter>" "Go to adamsgaard/Sent"
macro index \ 5 "<change-folder>=geomail/INBOX/<enter>" "Go to Geomail inbox"
macro index \ % "<change-folder>=geomail/Sent/<enter>" "Go to Geomail sent"
macro index \ 6 "<change-folder>=ucsd/INBOX/<enter>" "Go to UCSD inbox"
@@ -166,6 +173,8 @@ macro index \ 2 "<change-folder>=princeton/INBOX/<enter>" "Go to Princeton inbox
macro index \ @ "<change-folder>=princeton/Sent Items/<enter>" "Go to Princeton sent"
macro index \ 3 "<change-folder>=noaa/INBOX/<enter>" "Go to NOAA inbox"
macro index \ \# "<change-folder>=noaa/[Gmail].Sent\ Mail/<enter>" "Go to NOAA sent"
+macro index \ 6 "<change-folder>=riseup/INBOX/<enter>" "Go to Riseup inbox"
+macro index \ ^ "<change-folder>=riseup/Sent/<enter>" "Go to Riseup sent"
# mutt-sidebar
@@ -199,13 +208,14 @@ macro index Y "<next-unread-mailbox>" "go to next mailbox with unread mails"
macro index,pager S "<enter-command>unset wait_key<enter>\
<pipe-entry>bogofilter -l -s<enter>\
<enter-command>set wait_key<enter>\
-<save-message>=riseup/Spam<enter>" "mark as spam"
+<save-message>=adamsgaard/Spam<enter>" "mark as spam"
# sync all accounts
macro index <Esc>o "<enter-command>unset wait_key<enter><shell-escape>tmux split-window -p 25 \"offlineimap -qf INBOX\"; tmux select-pane -l<enter><enter-command>set wait_key<enter>"
macro index <Esc>O "<enter-command>unset wait_key<enter><shell-escape>tmux split-window -p 25 \"offlineimap\"; tmux select-pane -l<enter><enter-command>set wait_key<enter>"
# sync current inbox
+folder-hook adamsgaard 'macro index o "<enter-command>unset wait_key<enter><shell-escape>tmux split-window -p 25 \"offlineimap -a adamsgaard -qf INBOX\"; tmux select-pane -l<enter><enter-command>set wait_key<enter>"'
folder-hook riseup 'macro index o "<enter-command>unset wait_key<enter><shell-escape>tmux split-window -p 25 \"offlineimap -a riseup -qf INBOX\"; tmux select-pane -l<enter><enter-command>set wait_key<enter>"'
folder-hook princeton 'macro index o "<enter-command>unset wait_key<enter><shell-escape>tmux split-window -p 25 \"offlineimap -a princeton -qf INBOX\"; tmux select-pane -l<enter><enter-command>set wait_key<enter>"'
folder-hook noaa 'macro index o "<enter-command>unset wait_key<enter><shell-escape>tmux split-window -p 25 \"offlineimap -a noaa -qf INBOX\"; tmux select-pane -l<enter><enter-command>set wait_key<enter>"'
@@ -213,6 +223,7 @@ folder-hook gmail 'macro index o "<enter-command>unset wait_key<enter><shell-esc
folder-hook geomail 'macro index o "<enter-command>unset wait_key<enter><shell-escape>tmux split-window -p 25 \"offlineimap -a geomail -qf INBOX\"; tmux select-pane -l<enter><enter-command>set wait_key<enter>"'
# sync current account
+folder-hook adamsgaard 'macro index O "<enter-command>unset wait_key<enter><shell-escape>tmux split-window -p 25 \"offlineimap -a adamsgaard\"; tmux select-pane -l<enter><enter-command>set wait_key<enter>"'
folder-hook riseup 'macro index O "<enter-command>unset wait_key<enter><shell-escape>tmux split-window -p 25 \"offlineimap -a riseup\"; tmux select-pane -l<enter><enter-command>set wait_key<enter>"'
folder-hook princeton 'macro index O "<enter-command>unset wait_key<enter><shell-escape>tmux split-window -p 25 \"offlineimap -a princeton\"; tmux select-pane -l<enter><enter-command>set wait_key<enter>"'
folder-hook noaa 'macro index O "<enter-command>unset wait_key<enter><shell-escape>tmux split-window -p 25 \"offlineimap -a noaa\"; tmux select-pane -l<enter><enter-command>set wait_key<enter>"'
@@ -239,11 +250,11 @@ set index_format="%2C %Z [%D] %-22.22F (%?l?%4l&%4c?) %s"
macro index,pager S "<enter-command>unset wait_key<enter>\
<pipe-entry>bogofilter -l -s<enter>\
<enter-command>set wait_key<enter>\
-<save-message>=riseup/Spam<enter>" "mark as spam"
+<save-message>=adamsgaard/Spam<enter>" "mark as spam"
macro index,pager H "<enter-command>unset wait_key<enter>\
<pipe-entry>bogofilter -l -n<enter>\
<enter-command>set wait_key<enter>\
-<save-message>=riseup/INBOX<enter>" "mark as ham (non-spam)"
+<save-message>=adamsgaard/INBOX<enter>" "mark as ham (non-spam)"
# Get mutt to display its version on startup.
push <show-version>