Jeff Abrahamson on 20 Jan 2006 13:32:01 -0000

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] procmail and matching on split lines

I have a procmail rule that guarantees I don't miss mailman notices
that I have to approve:

    * ^Subject: .*post.*requires approval

It turns out that a very long email address can foil this:

    Date: Fri, 20 Jan 2006 00:12:19 -0500
    Subject: Cs260-200502 post from requires

I didn't realize subject lines could contain hard breaks.  I'm not
sure how to match this without matching anything containing "post" and
"requires".  Indeed, an even longer email address could push
"requires" to the next line, and I'm not clear how to match that.

I think this would work, but feels overly broad:

    * ^Subject: .*post
    * ^.*requires
    * ^.*approval$

Any suggestions for doing better?


 Jeff Abrahamson  <>    +1 215/837-2287
 GPG fingerprint: 1A1A BA95 D082 A558 A276  63C6 16BF 8C4C 0D1D AE4B

Attachment: signature.asc
Description: Digital signature

Philadelphia Linux Users Group         --
Announcements -
General Discussion  --