Jeff Abrahamson on 20 Jan 2006 13:32:01 -0000 |
I have a procmail rule that guarantees I don't miss mailman notices that I have to approve: :0: * ^Subject: .*post.*requires approval /var/mail/$LOGNAME It turns out that a very long email address can foil this: Date: Fri, 20 Jan 2006 00:12:19 -0500 From: cs260-200502-owner@cs.drexel.edu Subject: Cs260-200502 post from xxxxx.yyyyy.zzzzzzzz@drexel.edu requires approval To: cs260-200502-owner@cs.drexel.edu 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: :0: * ^Subject: .*post * ^.*requires * ^.*approval$ /var/mail/$LOGNAME Any suggestions for doing better? -- Jeff Jeff Abrahamson <http://www.purple.com/jeff/> +1 215/837-2287 GPG fingerprint: 1A1A BA95 D082 A558 A276 63C6 16BF 8C4C 0D1D AE4B Attachment:
signature.asc ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|