procmail
[Top] [All Lists]

Re: Problem with charset recipe

2004-04-13 13:54:45
Toen wij Timur Tabi kietelden, kwam er dit uit:

* ^Content-Type:.*charset=(\")?(${CHARSETS})

That needs an early $, see man procmailrc:

  $    Evaluate the remainder of this condition according to
       sh(1) substitution rules inside double  quotes,  skip
       leading whitespace, then reparse it.

  CHARSETS = "(Windows-1251|koi8-r|big5)"
  CT_test  = "^Content-Type:.*charset=\"?$CHARSETS"
  dh       = ".dh-unblocked-spam/"

  :0
  *$ $CT_test
  $dh

  :0E
  *$ B ?? $CT_test
  $dh

(untested)

-- 
Grtz, Ruud

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