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