In order to allow spam messages to be blocked/deleted instead of being marked by spamassassin I propose to introduce a simple delete option (-D) to spamc. This would be very useful for email accounts receiving large amounts of spam that are never read anyway. The following sendmail alias example shows how a sendmail server then can be set up to only pass non-spam messages to an exchange server account.

user: "| exec /usr/local/bin/spamc -D | /usr/bin/rmail [EMAIL PROTECTED]"

The required modification to spamc.c is given as a diff below.

Best regards,
Oystein

60a61,63
> /* D-option blocking spam */
> int Delete = 0;
>
87a91
>   printf("-D: delete message if spam\n");
96c100
<   while(-1 != (opt = getopt(argc,argv,"-BcrRd:e:fhyp:t:s:u:xSHU:")))
---
>   while(-1 != (opt = getopt(argc,argv,"-BcrRd:e:fhyp:t:s:u:xSHU:D")))
188a193,197
>     case 'D':
>       {
>         Delete = 1;
>         break;
>       }
312a322,325
>     if(Delete&(m.is_spam==EX_ISSPAM)) {
>       message_cleanup (&m);
>       exit(EX_ISSPAM);
>     }



Øystein Halvorsen, M.Sc.        Email:  [EMAIL PROTECTED]
Senior Systems Consultant       Phone:  +47 370 35 650
UNEP / GRID-Arendal             Direct: +47 370 35 709
Service Box 706                 Home:   +47 370 21 133
N-4808 Arendal, NORWAY          Cell:   +47 951 83 625


------------------------------------------------------- This SF. Net email is sponsored by: GoToMyPC GoToMyPC is the fast, easy and secure way to access your computer from any Web browser or wireless device. Click here to Try it Free! https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to