++ 20/01/14 21:40 +0100 - Jan-Herbert Damm: >i would like to send an automatic answer to html-mails sent to me (because i'm >tired of writing back that i prefer plain-text). > >I am aware that this is hardly an issue of mutt, but rather procmail >or scripting. But i am curious how this could be approached.
Procmail would suffice and definately for a rudimentary filter: :0 * ^Content-type: text/html * ! ^X-Loop: autoreply_because_html | (formail -rt \ -A"Precedence: junk" \ -A"X-Loop: autoreply_because_html" ; \ cat $HOME/body_of_autoreply.txt) | $SENDMAIL -t Or something along those lines. Untested. Procmail has lots of example in the procmailex manpage as well as on the internet. -- Rejo Zenger . <r...@zenger.nl> . 0x21DBEFD4 . <https://rejo.zenger.nl> GPG encrypted e-mail preferred . +31.6.39642738 . @rejozenger
pgpsJs4E3Pe5M.pgp
Description: PGP signature