commit 64255b21e76b9eb6ecb111662db2bb75733e8189 parent 9b66d9118b3d5b22b64985991efc546355b8d883 Author: Jaromil <jaromil@dyne.org> Date: Sun, 21 Apr 2013 19:55:27 +0200 slightly better html rendering Diffstat:
M | src/mutt/general | | | 3 | ++- |
M | src/zlibs/filters | | | 20 | +++++++++++++++----- |
2 files changed, 17 insertions(+), 6 deletions(-)
diff --git a/src/mutt/general b/src/mutt/general @@ -75,7 +75,8 @@ set askcc = yes ################## ## Sending options -set allow_8bit +set allow_8bit = yes +set allow_ansi = yes #set bounce_delivered set followup_to = yes set honor_followup_to = yes diff --git a/src/zlibs/filters b/src/zlibs/filters @@ -88,16 +88,26 @@ source $WORKDIR/Mutt.txt EOF # MUTT MAILCAP - - wwwtext=w3m - { command -v lynx > /dev/null } && { wwwtext=lynx } - { command -v 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 + + wwwtext=w3m + if command -v elinks; then + cat <<EOF >> $MUTTDIR/mailcap +text/html; elinks -dump -dump-charset %{charset} -dump-color-mode 0 %s; nametemplate=%s.html; copiousoutput +EOF + elif command -v w3m; then + cat <<EOF >> $MUTTDIR/mailcap +text/html; w3m -I %{charset} -T text/html %s; nametemplate=%s.html; copiousoutput +EOF + elif command -v lynx; then + cat <<EOF >> $MUTTDIR/mailcap +text/html; lynx -dump -assume_charset=%{charset} %s; nametemplate=%s.html; copiousoutput +EOF + fi apptypes=`cat ${WORKDIR}/Applications.txt` for t in ${(f)apptypes}; do eval `print $t | awk '