Sweet! I usually use procmail to pass only messages scoring < *** to vacation or autorespond, but this is a much-easier-to-manage way.
Quinn --------------------------------------------------------------------- Strangecode :: Internet Consultancy http://www.strangecode.com/ +1 530 624 4410 On Wed, 14 Feb 2007 15:14:50 +0100, Simone Lazzaris wrote: > Hi anybody/everybody > > I've patched autorespond (v2.0.4, but the patch also apply to 2.0.5) > to detect > spam messages tagged by spamassassin; this to avoid to respond to spam > messages. Patch is: > > --- autorespond-2.0.4-orig/autorespond.c 2003-08-25 > 18:11:58.000000000 > +0200 > +++ autorespond-2.0.4/autorespond.c 2007-02-14 14:53:00.000000000 +0100 > @@ -640,7 +640,8 @@ > } > if ( inspect_headers("precedence", "junk" ) != (char *)NULL || > inspect_headers("precedence", "bulk" ) != (char *)NULL || > - inspect_headers("precedence", "list" ) != (char *)NULL ) > + inspect_headers("precedence", "list" ) != (char *)NULL || > + inspect_headers("X-Spam-Status", "Yes" ) != (char *)NULL ) > { > fprintf(stderr,"AUTORESPOND: Junk mail received.\n"); > _exit(100); > > > > It would be nice to have this integrated in autorespond.
