procmail
[Top] [All Lists]

Re: Charset ISO-8859-1 and ASCII Subjects - Part II

2004-03-12 08:25:03
Toen ik Felipe Piccirilo kietelde, kwam er dit uit:

SUBJECT=`formail -xSubject: | mymimedecode`



  WS = "$SPACE$TAB"

  H_Subject # unset
  :0
  *$ ^Subject:.*\/[^$WS].*
  { H_Subject = $MATCH }

  :0:
  * ! H_Subject ?? .
  suspect

  :0
  * H_Subject ?? ^^=\?[a-z0-9-]+\?[bq]\?\/[^?]+
  {
    bq_Input = $MATCH
    INCLUDERC = bq.inc
    H_Subject = bq_Return
  }

  :0
  * H_Subject ?? Milhões pra cáça
  /dev/null



Beware: qp-encoding (and =?us-ascii?q?p=61rtial=2Dencod?=ing) is not
covered yet.


BTW: I sometimes see [^\?] in recipes.
I think that means: not backslash and not questionmark.

-- 
Affijn, Ruud


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