Mark, I am trying to do the same thing as Richard and seeing similar results. When I detect a custom 'spam' header, I set the option to bypass_spam_checks using the code sample you provided, but I think that if spam checks are completely bypassed, then so are all of the actions that can be taken as a result of detecting spam. Setting CC_SPAM doesn't seem to have any effect if bypass_spam_checks is set.
Chris ----- Original Message ----- From: "Richard Smits" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Tuesday, July 29, 2008 4:31 PM Subject: Re: [AMaViS-user] Quarantaine mail without spamassassin > Mark, > > Yes, I know, but i am testing with a telnet to port 25, and a subject > without the space. But even if i change the regexp to > > /^[ \t]richard/ > or > /^[ \t]*richard/ > and use subject: richard > > i have the same issue. > > I can see that the regexp is working, because the spam check is being > skipped. I can see that in the logfile, and in the header on the > received system. > > Email without richard in the subject : No, score=2.576 > Email with richard in the subject : score=x, tag=0, tag2=0, local=1, > bl=, s=, mangle= (and no spamassassin info in the header) > > So I am halfway there... the only problem remains that the message is > not being seen as spam, and not being placed in the quarantaine. > > Greetings... Richard > >> Your regexp doesn't match the actual subject: >> >> if ($subj =~ /^richard/) { >> >> The subject is ' richard', i.e. with a space after a colon. >> That's why I started my regexp with a /^[ \t]* .../ >> >> Mark USA.NET You Run Your Business. We'll Run Your Email. This message is for the sole use of the intended recipient(s) and may contain confidential and/or privileged information of USA.NET, Inc. Any unauthorized review, use, copying, disclosure, or distribution is prohibited. If you are not the intended recipient, please immediately contact the sender by reply email and delete all copies of the original message. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ AMaViS-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
