[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Procmail recipe for MIME mail


How does one make procmail send a MIME autoresponder if it detects
that the file to be sent by a recipe is (e.g.) an HTML file?  My
current recipe (from VishwaKarma) looks like:

        * !^FROM_DAEMON
        * !^X-Loop: $RECIP@xxxxxxxxxx
                |(formail -rt -I"Precedence: junk" -A"X-Loop: $RECIP@xxxxxxxxxx" ; cat $AUTOREPLY) | $SENDMAIL -f$RECIP1 -t

Now i want it to check if $AUTOREPLY is an HTML file, and send a
proper MIME message if it is.  If it isn't, then the current rule is


-- Raju
Raju Mathur          raju@xxxxxxxxxxxxx           http://kandalaya.org/