Re: Matching literal dot in To

Alan Clifford <[email protected]> Sat, 13 Jun 2015 00:06:47 +0100 (BST)
Newsgroups gmane.mail.procmail
Organization http://rp.clifford.org.uk/potpourri/
Message-ID <[email protected]>
Moby wrote to [email protected]
[at 16:02 (-0500) on Friday, 12th June, 2015]:

>
>
> On 06/11/2015 11:27 PM, Bart Schaefer wrote:
>> On Thu, Jun 11, 2015 at 9:00 PM, Moby <[email protected]> wrote:
>>> I use the following to match a literal dot in the To field, the dot 
>>> (period)
>>> has to occur prior to the @ character.  The recipe is:
>>> 
>>> "^To:.*\..*@.*"
>> Could you post the entire actual recipe, please?  And the relevant
>> fragment of log file, since you have it.
>> ____________________________________________________________
>> 
> Thanks Bart.  The recipe is:
> :0w
> * ^To:.*\..*@.*
> | $DELIVERTO -a $CYUSER -m "jdotrejects" $CYUSER
>
> The log snippet is:
> procmail: Match on "^To:.*\..*@.*"
>
> Here are header snippets from the particular email:
>
> From: "GameStop PowerUp Rewards" <[email protected]>
> To: "[email protected]" <[email protected]>
>
> (abc-def.com is made up)
>
>
>

I see that as

^To: matches To:
.* matches "gamestop@abc-def
\. matches .
.* matches com" <gamestop
@ matches @


Alan

(  Please address personal email to alan+1@ as email to lists@
    is only read from my subscribed lists. )
--