Search
j0ke.net Open Build Service
>
Projects
>
server:mail
>
autorespond
> autorespond-Spam.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File autorespond-Spam.patch of Package autorespond (Revision 5)
Currently displaying revision
5
,
show latest
--- autorespond.c.orig 2011-09-26 18:04:00.003138370 +0200 +++ autorespond.c 2011-09-26 18:06:24.442616194 +0200 @@ -646,6 +646,12 @@ _exit(0); /* don't reply to bulk, junk, or list mail */ } + if ( inspect_headers("X-Spam-Flag", "YES" ) != (char *)NULL ) + { + fprintf(stderr,"AUTORESPOND: Spam mail received. \n"); + _exit(0); /* don't reply to spam */ + } + /*check the logs*/ if(chdir(dir) == -1) { fprintf(stderr,"AUTORESPOND: Failed to change into directory.\n");