spamassassin-users October 2010 archive
Main Archive Page > Month Archives  > spamassassin-users archives
spamassassin-users: AW: Own Rule

AW: Own Rule

From: Hans-Werner Friedemann <h-w.friedemann_at_nospam>
Date: Mon Oct 04 2010 - 06:00:59 GMT
To: "John Hardin" <jhardin@impsec.org>, <users@spamassassin.apache.org>

Sorry, but is it possible to combine
__TO_EQ_FROM and __FROM_IN_SUBJECT in a meta rule?

Can somebody help me to build this rule?

Thanks in advance

 

-----Ursprüngliche Nachricht-----
Von: John Hardin [mailto:jhardin@impsec.org]
Gesendet: Sonntag, 3. Oktober 2010 04:00
An: users@spamassassin.apache.org
Betreff: Re: Own Rule

On Thu, 30 Sep 2010, John Hardin wrote:

> On Thu, 30 Sep 2010, RW wrote:
>
>> On Thu, 30 Sep 2010 06:39:15 -0700 (PDT) John Hardin
>> <jhardin@impsec.org> wrote:
>>
>> > On Thu, 30 Sep 2010, Hans-Werner Friedemann wrote:
>> >
>> > > Has anyone an idea how I can implement an check whether the
>> > > eMail-recipient is the sender an[d] the eMail-Adress appears in
>> > > the subject to[o]?
>> >
>> > Use the __TO_EQ_FROM meta rule that's being distributed via
>> > sa-update.
>> >
>> > What exactly do you want to check for?
>>
>> As I read it he wants
>>
>> __TO_EQ_FROM && __FROM_IN_SUBJECT
>>
>> where __FROM_IN_SUBJECT would presumably be constructed in a similar
>> way to __TO_EQ_FROM
>
> Gah. Quick answer after brief skim. Sorry.
>
> I'll put that together and add it to my sandbox, likely tomorrow.

...not too shabby:

http://ruleqa.spamassassin.org/20101002-r1003754-n/T_FROM_IN_TO_AND_SUBJ/detail

I'll promote it shortly if it keeps that level of performance.

-- John Hardin KA7OHZ http://www.impsec.org/~jhardin/ jhardin@impsec.org FALaholic #11174 pgpk -a jhardin@impsec.org key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79 ----------------------------------------------------------------------- No representation without taxation! ----------------------------------------------------------------------- 76 days until TRON Legacy