3 messages in net.sourceforge.lists.courier-maildropRE: [maildropl] regex trouble
FromSent OnAttachments
novitiateOct 13, 2003 6:06 pm 
Gregor LawatscheckOct 15, 2003 7:51 am 
Rob HuttonOct 15, 2003 10:59 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:RE: [maildropl] regex troubleActions...
From:Rob Hutton (rob.@comcast.net)
Date:Oct 15, 2003 10:59:42 am
List:net.sourceforge.lists.courier-maildrop

I'm no regex expert either, but I thin * means 0 or more and + means 1 or more...

-----Original Message----- From: cour@lists.sourceforge.net [mailto:cour@lists.sourceforge.net]On Behalf Of Gregor Lawatscheck Sent: Wednesday, October 15, 2003 10:52 AM To: cour@lists.sourceforge.net Subject: Re: [maildropl] regex trouble

At 02:57 14/10/2003, you wrote:

if (/^To:*!.*/:h) { SENDER=$MATCH2 log "$SENDER" } if (/^From:*!.*/:h) { RCPT=$MATCH2 log "$RCPT" }

if (/^Subject:.*Spam:!.*!\)$/)

Try ".+" instead of ".*" where ever you can.

I've had problems with .* regexes and strange matching - which is either because the regex is "too greedy" or the behaviour of .* is "buggy". I'm not enough of a regex expert nor code monkey to tell.