procmail
[Top] [All Lists]

Re: \/ and ${MATCH} : question

2004-10-27 03:27:34
Toen wij Udi Mottelo kietelden, kwam er dit uit:
Dallman Ross:

  :0
  * ^From:(_dot_)*(_at_)\/.*\.test\.com
  * MATCH ?? ^^\/[a-z]+
  $MATCH/

To make it little general:

* MATCH ?? ^^\/[^.]+

The first MATCH could still be empty:  user(_at_)(_dot_)test(_dot_)com 
or start with a dot: user(_at_)(_dot_)abc(_dot_)test(_dot_)com 
(the From: header can be abused).

The second condition would still fail, but a 
stronger first condition is possible:

   :0
   * ^From:(_dot_)*(_at_)\/[^.].*\.test\.com
   * MATCH ?? ^^\/[^.]+
   -IN.$MATCH/

I prefer to use a prefix like '-IN.' to alphabetically group 
the IN-boxes.

-- 
Grtz, Ruud

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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