procmail
[Top] [All Lists]

Re: matching addr in msg body for formail

2003-11-12 18:12:30
Toen ik deb kietelde, kwam er dit uit:

From: majordomo(_at_)lists(_dot_)com
Subject: APPROVE e-list
Reply-To: majordomo(_at_)lists(_dot_)com
Date: Wed, 12 Nov 2003 12:44:31 -0800 (PST)
To: e-list-approval(_at_)lists(_dot_)com


So-and-so <This-soandso(_at_)somdom(_dot_)com> requests that you approve the
following:

    unsubscribe e-list ThatsoandSo(_at_)somdom(_dot_)com


The more known headers, the better. If you can, add checks of the From_
header,
any List-headers, etc.

  :0
  * ^From: majordomo(_at_)lists\(_dot_)com$
  * ^Subject: APPROVE e-list$
  * ^Reply-To: majordomo(_at_)lists\(_dot_)com$
  * ^Date: (Sun|Mon|Tue|Wed|Thu|Fri|Sat), (0?[1-9]|[12][0-9]|3[01]) \
           (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) 200[34] \
           ([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9] -0800 \(PST\)$
  * ^To: e-list-approval(_at_)lists\(_dot_)com$
  * B ?? ^^$$.*<\/[^>]+> requests that you approve the
ollowing:$$[  ]+unsubscribe .*
  {
     M = "$MATCH"

     :0
     * M ?? ^^\/[^>]+
     { Req_addr = "$MATCH" }

     :0
     * M ?? ^^[^>]+> requests that you approve the
ollowing:$$[  ]+unsubscribe \/.*
     { M = "$MATCH" }

     :0
     * M ?? ^^\/[^ ]+
     { Listname = "$MATCH" }

     :0
     * M ?? ^^[^ ]+ \/[^ ]+
     { Sub_addr = "$MATCH" }
   }

etc.

-- 
Affijn, Ruud


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