procmail
[Top] [All Lists]

Re: recipe AND NOT

2004-06-28 04:15:54
Toen wij Scott Stark kietelden, kwam er dit uit:

 :0D
 * ^To:.*FRAMEWORKS
 * ! ^FROM:*Automatic

To do case-sensitive testing of the value of headers, you will 
first have to isolate the values.

  SPC = " "             # literal space
  TAB = "    "          # literal tab
  S   = "[^$SPC$TAB]"   # non-whitespace

  H_From  # unset
  H_To    # unset

  :0
  *$ ^From:.*\/$S.*
  { H_From = $MATCH }

  :0
  *$ ^To:.*\/$S.*
  { H_To = $MATCH }


After this, you can test the isolated values case-sensitively:

  :0D
  *  H_To   ?? FRAMEWORKS
  *! H_From ?? Automatic
  { etc. }


See also http://www.xs4all.nl/~rvtol/procmail/ 
--> basic --> pm, specifically globals.inc and 
H_vars.inc)

-- 
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>