[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mail messages with only html



Am 2007-09-14 18:15:39, schrieb Richard Lyons:
> My mutt doesn't do that.  Just gives me a blank page (i.e. the contents
> of the empty email without the html attachment).  Anyway I want to have
> the html stripped of tags to reply to.
------------------------- END OF REPLIED MESSAGE -------------------------

Not tested but you can try this procmail recipe:

----8<------------------------------------------------------
:0
* ^Content-Type:.*text/html
{
  HEADER=`formail -X '' |sed 's|text/html|text/plain|'`
  BODY=`formail -I '' |w3m -dump -T text/html -`

  :0fw
  |/dev/null && echo -e "${HEADER}\n\n${BODY}\n"
}
----8<------------------------------------------------------


Thanks, Greetings and nice Day
    Michelle Konzack
    Tamay Dogan Network


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSN LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


Reply to: