Re: rule to check for non existing header

2009-01-28 Thread Karsten Bräckelmann
On Wed, 2009-01-28 at 17:32 +0100, Marc Patermann wrote: > Karsten Bräckelmann schrieb: > > Given the already existing positive check, the easiest way is this: > > > > meta  NON_PMS_Spam_DB ! PMS_Spam_DB > > score NON_PMS_Spam_DB -0.1 > > Thanks! That's what I searched for. And much easier t

Re: rule to check for non existing header

2009-01-28 Thread Marc Patermann
RW schrieb: I think the test needs to end in /m if you want to use ^ otherwise it'll see all the headers as one big string and only match when it's the first header. I tried so much, it must have been gone by the time I was testing. But Karsten already helped me out. Thanks Marc

Re: rule to check for non existing header

2009-01-28 Thread Marc Patermann
Karsten, Karsten Bräckelmann schrieb: Given the already existing positive check, the easiest way is this: meta  NON_PMS_Spam_DB ! PMS_Spam_DB score NON_PMS_Spam_DB -0.1 Thanks! That's what I searched for. And much easier than a regex. For more information and a introductory guide, see

Re: rule to check for non existing header

2009-01-28 Thread RW
On Wed, 28 Jan 2009 14:04:28 +0100 Marc Patermann wrote: > I haven't figured out yet how to check for a header not existing in > the mail. > I tried > > header NON_PMS_Spam_DB ALL =~ /^(?:PMS-Spam-DB\:)/ > score NON_PMS_Spam_DB -0.1 > > but the test does not fail, if the header does exit. > >

Re: rule to check for non existing header

2009-01-28 Thread Karsten Bräckelmann
On Wed, 2009-01-28 at 14:04 +0100, Marc Patermann wrote: > Hi, > > my provider relays my mail and does spam checking with header tagging. > > I want to create rules to check for the tag headers and score them: > - positive for existing headers > - negative for non existing headers. > > The first