You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Niamh Holding <ni...@fullbore.co.uk> on 2012/06/14 10:26:26 UTC

To: header

Hello

Is there a rule like HAS_SUBJECT that tests for the presence of the
To: header?

-- 
Best regards,
 Niamh                          mailto:niamh@fullbore.co.uk

Re: To: header

Posted by Benny Pedersen <me...@junc.org>.
Den 2012-06-14 13:08, Niamh Holding skrev:

> A> grep -r HAS_SUBJECT /var/lib/spamassassin/*
>
> And that will tell me if there's a test for the To: headrer?

nope it shows a rule for inspiration :=)



Re: To: header

Posted by Niamh Holding <ni...@fullbore.co.uk>.
Hello Axb,

Thursday, June 14, 2012, 11:55:06 AM, you wrote:

A> grep -r HAS_SUBJECT /var/lib/spamassassin/*

And that will tell me if there's a test for the To: headrer?

-- 
Best regards,
 Niamh                            mailto:niamh@fullbore.co.uk

Re: To: header

Posted by Axb <ax...@gmail.com>.
On 06/14/2012 10:26 AM, Niamh Holding wrote:
>
> Hello
>
> Is there a rule like HAS_SUBJECT that tests for the presence of the
> To: header?
>

grep -r HAS_SUBJECT /var/lib/spamassassin/*

Re: To: header

Posted by Niamh Holding <ni...@fullbore.co.uk>.
Hello Axb,

Thursday, June 14, 2012, 11:56:12 AM, you wrote:

A> grep -r HAS_TO  /var/lib/spamassassin/*

Easy, when one knows that it exists :)

So no score assigned to a simple missing To: header as all that finds
is a meta.

-- 
Best regards,
 Niamh                            mailto:niamh@fullbore.co.uk

Re: To: header

Posted by Niamh Holding <ni...@fullbore.co.uk>.
Hello Axb,

Thursday, June 14, 2012, 1:15:45 PM, you wrote:

A> Now, you'll use one of those rules, saved you from creating it yourself
A> and having to keep it alive locally so you've just made it worth 
A> mantaining the file :)

Actually I was creating a specific "Empty to" rule and know  that from
past experience that To =~ /^\s*$/ hits where the To: header doesn't
exist.

-- 
Best regards,
 Niamh                            mailto:niamh@fullbore.co.uk

Re: To: header

Posted by Axb <ax...@gmail.com>.
On 06/14/2012 02:04 PM, Niamh Holding wrote:
>
> Hello Axb,
>
> Thursday, June 14, 2012, 12:41:37 PM, you wrote:
>
> A>  What's the problem if it is being used by other meta tests?
>
> Did I say it was?
>
> A>  Have you looked at the file which includes that rule?
>
> Base __HAS_* rules for meta rules
>
> Which adds nothing to the observation that a rule in the file is not
> used elsewhere.
>

and you read further which states:

# According to Bug 6781

which you found at

https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6781

and reading thru the whole irrelevant blah you found an entry

AXB 2012-05-17 16:59:11 UTC


These rules are there to be used in metas, by either users or rule devs 
in sandboxes at 
http://svn.apache.org/repos/asf/spamassassin/trunk/rulesrc/sandbox/ as 
base rules ( 10_hasbase.cf naming) and avoid these rules being created 
multiple times all over the place which creates "floating" dependencies.

Now, you'll use one of those rules, saved you from creating it yourself 
and having to keep it alive locally so you've just made it worth 
mantaining the file :)










Re: To: header

Posted by Niamh Holding <ni...@fullbore.co.uk>.
Hello Axb,

Thursday, June 14, 2012, 12:41:37 PM, you wrote:

A> What's the problem if it is being used by other meta tests?

Did I say it was?

A> Have you looked at the file which includes that rule?

Base __HAS_* rules for meta rules

Which adds nothing to the observation that a rule in the file is not
used elsewhere.

-- 
Best regards,
 Niamh                            mailto:niamh@fullbore.co.uk

Re: To: header

Posted by Axb <ax...@gmail.com>.
On 06/14/2012 01:12 PM, Niamh Holding wrote:
>
> Hello Axb,
>
> Thursday, June 14, 2012, 11:56:12 AM, you wrote:
>
> A>  grep -r HAS_TO  /var/lib/spamassassin/*
>
> And a test that isn't used in any meta tests is what I meant to say.

What's the problem if it is being used by other meta tests?

Have you looked at the file which includes that rule?




Re: To: header

Posted by Niamh Holding <ni...@fullbore.co.uk>.
Hello Axb,

Thursday, June 14, 2012, 11:56:12 AM, you wrote:

A> grep -r HAS_TO  /var/lib/spamassassin/*

And a test that isn't used in any meta tests is what I meant to say.

-- 
Best regards,
 Niamh                            mailto:niamh@fullbore.co.uk

Re: To: header

Posted by Axb <ax...@gmail.com>.
On 06/14/2012 10:26 AM, Niamh Holding wrote:
>
> Hello
>
> Is there a rule like HAS_SUBJECT that tests for the presence of the
> To: header?
>

sorry...


grep -r HAS_TO  /var/lib/spamassassin/*

Re: To: header

Posted by Benny Pedersen <me...@junc.org>.
Den 2012-06-14 10:26, Niamh Holding skrev:

> Is there a rule like HAS_SUBJECT that tests for the presence of the
> To: header?

header exists_to exists:to

spamassassin 2>&1 -D -t spammsg | grep -ri to: | less


Re: To: header

Posted by RW <rw...@googlemail.com>.
On Thu, 14 Jun 2012 09:26:26 +0100
Niamh Holding wrote:

> 
> Hello
> 
> Is there a rule like HAS_SUBJECT that tests for the presence of the
> To: header?
> 
header MISSING_HEADERS		eval:check_for_missing_to_header()

Re: To: header

Posted by Cédric Jeanneret <cj...@tengu.ch>.
On 14.06.2012 10:26, Niamh Holding wrote:
> Hello
>
> Is there a rule like HAS_SUBJECT that tests for the presence of the
> To: header?

Hello,

I have this kind of stuff in my rules:

header H_INTIMATE Subject =~ /C.?a.?n y.?o.?u.? remember me.+ w.?e.+ 
intimate/i

"Subject" is part of the mail header.

Cheers,

C.