From 4e3d72713cbd84d4b1be5417775e9ccc8bdef920 Mon Sep 17 00:00:00 2001 From: George Rawlinson Date: Wed, 9 Nov 2016 13:57:31 +1300 Subject: [PATCH] Add tag related macros & ability to read text/html attachments --- mail/.config/mutt/accounts/gmail | 4 ++++ mail/.config/mutt/accounts/nullpointer | 4 ++++ mail/.config/mutt/layout | 1 + mail/.config/mutt/mailcap | 2 ++ 4 files changed, 11 insertions(+) diff --git a/mail/.config/mutt/accounts/gmail b/mail/.config/mutt/accounts/gmail index 5505a10..a328f77 100644 --- a/mail/.config/mutt/accounts/gmail +++ b/mail/.config/mutt/accounts/gmail @@ -17,3 +17,7 @@ set smtp_url=smtp://$from@smtp.gmail.com:587 macro index A "+gmail/Archive" "move message to the archive" macro index S "+gmail/Spam" "mark message as spam" macro index D "+gmail/Trash" "move message to the trash" +# tag macros +macro index \Ca "+gmail/Archive" "move tagged messages to archive" +macro index \Cs "+gmail/Spam" "move tagged messages to spam" +macro index \Cd "+gmail/Trash" "move tagged messages to trash" diff --git a/mail/.config/mutt/accounts/nullpointer b/mail/.config/mutt/accounts/nullpointer index e0ae5f0..2514243 100644 --- a/mail/.config/mutt/accounts/nullpointer +++ b/mail/.config/mutt/accounts/nullpointer @@ -17,3 +17,7 @@ set smtp_url=smtp://$from@mail.gandi.net:587 macro index A "+nullpointer/Archive" "move message to the archive" macro index S "+nullpointer/Spam" "mark message as spam" macro index D "+nullpointer/Trash" "move message to the trash" +# tag macros +macro index \Ca "+nullpointer/Archive" "move tagged messages to archive" +macro index \Cs "+nullpointer/Spam" "move tagged messages to spam" +macro index \Cd "+nullpointer/Trash" "move tagged messages to trash" diff --git a/mail/.config/mutt/layout b/mail/.config/mutt/layout index 7057a6d..e0a3771 100644 --- a/mail/.config/mutt/layout +++ b/mail/.config/mutt/layout @@ -22,6 +22,7 @@ set smart_wrap # attempt to wrap messages set tilde # vim-like end of msg unset markers # no line-wrap markers alternative_order text/plain text/enriched text/html # display preference in order +auto_view text/html # auto open html formatted mails # index set date_format = "%y-%m-%d %H:%M" # YY-MM-DD HH:SS diff --git a/mail/.config/mutt/mailcap b/mail/.config/mutt/mailcap index f659f14..9758cc9 100644 --- a/mail/.config/mutt/mailcap +++ b/mail/.config/mutt/mailcap @@ -1,2 +1,4 @@ # pdf documents application/pdf; okular %s; +# html +text/html; lynx -assume_charset=%{charset} -display_charset=utf-8 -dump %s; nametemplate=%s.html; copiousoutput