jaromail

a commandline tool to easily and privately handle your e-mail
git clone git://parazyd.org/jaromail.git
Log | Files | Refs | Submodules | README

commit ff7df807bdeb316cfece82c1231c3f4adea44b7b
parent 4a8ebf21f3795d4dec5311179988cf51dc45d1d6
Author: Jaromil <jaromil@dyne.org>
Date:   Tue,  5 Jun 2012 19:58:55 +0200

correctly visualize html emails with what's available

Diffstat:
Msrc/jaro | 14+++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/src/jaro b/src/jaro @@ -959,7 +959,7 @@ set sendmail = "$WORKDIR/bin/jaro queue" set header_cache= $WORKDIR/cache set maildir_header_cache_verify=no set editor = "$EDITOR" -set mailcap_path = "$WORKDIR/mailcap" +set mailcap_path = "$WORKDIR/.mutt/mailcap:$WORKDIR/mailcap:$HOME/.mailcap:/etc/mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap" # Little Brother Database set query_command = "$WORKDIR/bin/jaro -q addr '%s'" @@ -985,6 +985,18 @@ source $WORKDIR/Mutt.txt EOF + # making sure we have the minimum mailcap necessary +wwwtext=w3m +{ which lynx > /dev/null } && { wwwtext=lynx } +{ which elinks > /dev/null } && { wwwtext=elinks } +cat <<EOF > $MUTTDIR/mailcap +text/html; ${wwwtext} -dump %s; nametemplate=%s.html; copiousoutput + +text/plain; iconv -f iso-8859-1 -t utf-8; test=charset=%{charset} \ + && test x`echo \"$charset\" | tr a-z A-Z` = xISO-8859-1; copiousoutput +text/plain; cat %s +EOF + # this one is empty and sources files in temp when necessary touch $MUTTDIR/password