[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Procmail recipe for MIME mail
Hi,
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:
:0c
* !^FROM_DAEMON
* !^X-Loop: $RECIP@xxxxxxxxxx
{
:0
|(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
fine.
Regards,
-- Raju
--
Raju Mathur raju@xxxxxxxxxxxxx http://kandalaya.org/