On Fri, 2008-12-12 at 13:24 +0100, R.Smits wrote: > Yet Another Ninja wrote: > > On 12/12/2008 11:54 AM, R.Smits wrote: > >> Hello, > >> > >> Can someone please tell me if this is possible ? > >> > >> header __RULE1_01 From =~ /domain\.com/i > >> header __RULE2_02 Reply-To !~ /domain\.com/i > >> meta RULE03 (__RULE1_01 && __RULE2_02) > >> score RULE03 0.01 > >> > >> So can the : !~ be used in a header rule ? > > > > afaik, nope
perldoc Mail::SpamAssassin::Conf claims that it can. Around line 982 in my copy. > > > >> I have never tried it before .... > > > > header __RULE1_01 From =~ /domain\.com/i > > header __RULE2_02 Reply-To =~ /domain\.com/i > > meta RULE03 (__RULE1_01 && !__RULE2_02) > > score RULE03 0.01 > > > > should wor > > Ok, this works... but maybe to good ..... > > If a mail message has no "Reply-To:" field, this rule triggers... > > Can I do a "if excist" check or something ....? Yes: header __RULE2_03 exists:Reply-To meta RULE03 (__RULE1_01 && __RULE2_03 && !__RULE2_02) -- Daniel J McDonald, CCIE #2495, CISSP #78281, CNX Austin Energy http://www.austinenergy.com
signature.asc
Description: This is a digitally signed message part