On Fri, Nov 15, 2002 at 12:24:42PM -0500, Raghu Arni wrote:
> I would like to add a new rule which is checking to see if the "To:" field
> in the recvd email is ALL CAPS and then trash that mail..
> Otherwise my spamassassin works great (via procmail)..
> How do I go about doing this..??
I would t
Raghu Arni said the following on 15/11/02 17:24:
Hi,
I would like to add a new rule which is checking to see if the "To:" field
in the recvd email is ALL CAPS and then trash that mail..
header MY_ALL_CAPS_TO To =~ /^[A-Z\s]+$/
score MY_ALL_CAPS_TO 100
See perldoc Mail::SpamAssassin::Conf
Plus,
man Mail::SpamAssassin::Conf
There's lots of good info there...
Probably, you'll want something in your local.cf like:
header TO_ALL_CAPS To =~ /^[A-Z@\.\_\+\-]+$/
describe TO_ALL_CAPS"To" field in all caps
score TO_ALL_CAPS 1.000
Set the score to however many points you want to
At 09:24 AM 11/15/2002, you wrote:
Hi,
I would like to add a new rule which is checking to see if the "To:" field
in the recvd email is ALL CAPS and then trash that mail..
Otherwise my spamassassin works great (via procmail)..
How do I go about doing this..??
(I can't help on setting up the ru
Thx for all that responded..Well I was not gonna trash the mail just assign
it a high score..
one more Qn:
How do I run spamassassin in test mode..I have an email which I know is spam
as a simple text file and want to test it out with my new rules..I did RTFM
but ;(
I just did spamassassin -t te
| How do I run spamassassin in test mode..I have an email which I
|
| I just did spamassassin -t testmail.txt
You need to pipe/redirect the text file into SA. So it'd be:
spamassassin -t < testmail.txt
or
cat testmail.txt | spamassassin -t
---
> From: Matt Sergeant <[EMAIL PROTECTED]>
> Subject: Re: [SAtalk] spamassassin new rule..newbie alert
> To: Raghu Arni <[EMAIL PROTECTED]>
> CC: [EMAIL PROTECTED]
>
> Raghu Arni said the following on 15/11/02 17:24:
> > Hi,
> > I would like to add a ne
At Fri Nov 15 17:53:22 2002, Steve Thomas wrote:
>
> I wouldn't recommend doing this, though. E-mail addresses are not case
> sensitive,
That's not correct.
The local-part (the bit to the left of the '@' symbol) *is*
case-sensitive. It's only the domain (the bit after the '@') that's
not case-s
On Sat, Nov 16, 2002 at 11:31:37AM +, Martin Radford wrote:
> At Fri Nov 15 17:53:22 2002, Steve Thomas wrote:
> >
> > I wouldn't recommend doing this, though. E-mail addresses are not case
> > sensitive,
>
> That's not correct.
Neither, strictly speaking, is your assertion. The correct ans