From 48b68527e3907eef33b27985fed44c431df24d62 Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Tue, 2 Dec 2014 00:01:54 +0100 Subject: mutt html support --- muttrc | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'muttrc') diff --git a/muttrc b/muttrc index e7abfe1..87b8639 100644 --- a/muttrc +++ b/muttrc @@ -58,6 +58,22 @@ hdr_order Date From To Cc alternative_order text/plain text/html * auto_view text/html +# Hide crap + +ignore lines precedence status message-id x-lines x-loop x-sender +ignore nntp-posting-host old-return-path received references +ignore content- errors-to mime-version resent- return-path xref +ignore conversion original-encoded-information-types x400 x-vm- +ignore x-sun x-status x-vm- illegal-object x-authentication-warning +ignore originator x-received x-listprocessor x-mailinglist +ignore old-priority priority x-msmail-priority old-x-envelope-to +ignore x-envelope-to x-gateway x-z-charset x-forward-loop x-comment +ignore comments x-pmrqc x-face x-envelope-sender from_ x-mailing-list +ignore x-copyright x-cid-url sender x-ixthys-url x-priority +ignore x-no-junk-mail x-server-date x-phone x-mime-autoconverted +ignore x-alt-email x-orcpt company division x-warning + + # Gmail-style keyboard shortcuts macro index,pager gi "=Gmail/INBOX" "Go to inbox" macro index,pager ga "=Gmail/archive" "Go to all mail" @@ -98,7 +114,8 @@ set display_filter='$HOME/.mutt/alias.sh' # Mutt LED notification set status_format="$HOME/.mutt/notify.sh '%r %f (%L) [Msgs:%?M?%M/?%m%?n? New:%n?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?]'|" -#click link -macro pager \cb 'urlview' 'Follow links with urlview' - +# Render silly html +set mailcap_path = ~/.mutt/mailcap +auto_view text/html # view html automatically +alternative_order text/plain text/enriched text/html # save html for last -- cgit v1.2.3-54-g00ecf From 37f9cfda7f448ad0673e5dc47c35f5b6f72b5ba6 Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Tue, 2 Dec 2014 00:20:09 +0100 Subject: add rifle support to mutt --- mutt/mailcap | 2 ++ muttrc | 1 + 2 files changed, 3 insertions(+) (limited to 'muttrc') diff --git a/mutt/mailcap b/mutt/mailcap index f1610e9..c2ffbc4 100644 --- a/mutt/mailcap +++ b/mutt/mailcap @@ -1,2 +1,4 @@ +application/*; mkdir -p /tmp/mutt \; cp %s /tmp/mutt \; rifle /tmp/mutt/$(basename %s) & +image/*; mkdir -p /tmp/mutt \; cp %s /tmp/mutt \; rifle /tmp/mutt/$(basename %s) & text/html; ~/.ratpoison/firesend %s &; test=test -n "$DISPLAY"; needsterminal; text/html; w3m -I %{charset} -T text/html; copiousoutput; diff --git a/muttrc b/muttrc index 87b8639..94685b5 100644 --- a/muttrc +++ b/muttrc @@ -116,6 +116,7 @@ set status_format="$HOME/.mutt/notify.sh '%r %f (%L) [Msgs:%?M?%M/?%m%?n? New:%n # Render silly html set mailcap_path = ~/.mutt/mailcap +folder-hook . `rm -f /tmp/mutt/*` # delete tmp files created by mailcap auto_view text/html # view html automatically alternative_order text/plain text/enriched text/html # save html for last -- cgit v1.2.3-54-g00ecf