From: martin f. krafft Date: Tue, 25 Sep 2007 14:06:09 +0000 (+0200) Subject: only match name at word boundaries in justme X-Git-Url: https://git.madduck.net/etc/mailfilter.git/commitdiff_plain/f3c643f8d46f268e88dc3428d00b5f38d0dc2e5b?ds=inline only match name at word boundaries in justme --- diff --git a/procmail/justme b/procmail/justme index ac3dbd6..253c52d 100644 --- a/procmail/justme +++ b/procmail/justme @@ -23,24 +23,24 @@ JUSTME="explicitly excepted address" LOG="justme: passing; $JUSTME$NL" } - + :0 E - *$ 1^0 B ?? $RE_FIRSTNAME$RE_SPACE_NEWLINE+$RE_LASTNAME - *$ 1^0 B ?? $RE_LASTNAME[,]?$RE_SPACE_NEWLINE*$RE_FIRSTNAME + *$ 1^0 B ?? .*\<$RE_FIRSTNAME$RE_SPACE_NEWLINE+$RE_LASTNAME\> + *$ 1^0 B ?? .*\<$RE_LASTNAME[,]?$RE_SPACE_NEWLINE*$RE_FIRSTNAME\> { JUSTME="full name reference" LOG="justme: passing; $JUSTME$NL" } :0 E - *$ B ?? $RE_LASTNAME + *$ B ?? .*\<$RE_LASTNAME\> { JUSTME="last name reference" LOG="justme: passing; $JUSTME$NL" } :0 E - * 1^0 B ?? madduck + * 1^0 B ?? .*\ * -1^0 B ?? mass\.madduck\.net { JUSTME="nickname reference"