7 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] repeat question: cond...
FromSent OnAttachments
Payal RathodOct 17, 2006 11:32 am 
Rick RomeroOct 17, 2006 11:35 am 
Devin RubiaOct 17, 2006 11:48 am 
Payal RathodOct 18, 2006 7:22 am 
Devin RubiaOct 18, 2006 9:28 am 
Payal RathodOct 18, 2006 11:35 am 
Sam VarshavchikOct 18, 2006 2:37 pm 
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] repeat question: conditional deliverActions...
From:Sam Varshavchik (mrs@courier-mta.com)
Date:Oct 18, 2006 2:37:52 pm
List:net.sourceforge.lists.courier-maildrop

Payal Rathod writes:

On Wed, Oct 18, 2006 at 01:58:55PM -0230, Devin Rubia wrote:

OOPS! I meant I couldn't understand it.

if ( /^From:\\s*(.*)/ && lookup( $MATCH1, "/etc/whitelist" ))

Can you explain what this $MATCH1 is matching here. I understand \s is a whitespace, but why "\\s"?

Maildrop first processes the regular expression search string, removing backslashes that quote a character. The resulting string, containing a "\s", is then processed by the PCRE library, the regular expression matching engine.

In Posix/Perl regular expressions, \s matches a space character.