procmail
[Top] [All Lists]

Finished: RegEx help with " <

2004-04-08 17:37:34
After much typing and sandbox testing I found the code


:0
* ! ^(To|Cc):.*sbirl@
* ^(To|Cc):.*<+\/[^(_at_)]+
{
        LOG="          ---> Reached catch-all for email aliases (username).  
Matched  \"$MATCH\"${NL}"

        :0:
        +$MATCH
}




I tested it against
   "First Last" <Joe(_dot_)Schmoe(_at_)concept(_dot_)temple(_dot_)edu>
   <Joe(_dot_)Schmoe(_at_)concept(_dot_)temple(_dot_)edu>
and received the results I was expecting:
   +Joe.Schmoe





As it was written on Apr 7, thus S.A. Birl typed:

Original post:  
-------------------------------------------------------------------------------
Original post:
Original post:  Nutshell:
Original post:
Original post:
Original post:  Trying to filter email aliases.  Sometimes the email is in the 
form of
Original post:
Original post:  1)   "First Last" 
<Joe(_dot_)Schmoe(_at_)concept(_dot_)temple(_dot_)edu>
Original post:  2)   <Joe(_dot_)Schmoe(_at_)concept(_dot_)temple(_dot_)edu>
Original post:  3)   Joe(_dot_)Schmoe(_at_)concept(_dot_)temple(_dot_)edu
Original post:  4)   JoeSchmoe(_at_)concept(_dot_)temple(_dot_)edu
Original post:
Original post:  In examples 3 and 4, my filter works good.  But the " and < 
throw me.
Original post:  
-------------------------------------------------------------------------------
Original post:
Original post:
Original post:
Original post:  Details:
Original post:
Original post:  Here's the current receipe
Original post:  
-------------------------------------------------------------------------------
Original post:  # Need to work out kinks with <
Original post:  :0
Original post:  * ! ^(To|Cc):.*sbirl@
Original post:  * ^(To|Cc):.*[^${SPACE}${TAB}[<]"]+\/[^(_at_)]+
Original post:  {
Original post:         LOG="          ---> Reached catch-all for email aliases 
(username).  Matched  \"$MATCH\"${NL}"
Original post:
Original post:         :0:
Original post:         +$MATCH
Original post:  }
Original post:  
-------------------------------------------------------------------------------


RegEx help with double-quotes double quotes " less-than less than < 
angle-brackets angle brackets

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>