bill, check out "man procmailrc" and look for "TO". note the captitalization. that will do what you want:
If the regular expression contains ‘^TO_’ it will be substituted by ‘(^((Original‐)?(Resent‐)?(To|Cc|Bcc)|(X‐Envelope |Apparently(‐Resent)?)‐To):(.*[^‐a‐zA‐Z0‐9_.])?)’, which should catch all destination specifications containing a specific address. pete On Thu 09 Oct 03, 11:07 AM, Bill Kendrick <[EMAIL PROTECTED]> said: > > I have Procmail entries like this one: > > :0 > * ^To:(.*\<)[EMAIL PROTECTED] > { TAG=[mysql] } > > (where "TAG" is a little function to shove a string at the beginning > of the subject line, much like what's done on MOST lists I subscribe > to, like vox-* do here at LUGOD) > > > However, as you can see, it only checks the "To:" line. > Sometimes people reply to a poster, and then Cc the list. > > I'm always afraid to play with my live .procmailrc file, and don't > really have a 'test' environment (I'm sure someone'll explain an easy > way to test stuff on the shell ;^) ), but would something like this > work? > > :0 > * ^(To:|Cc:)(.*\<)[EMAIL PROTECTED] > { TAG=[mysql] } > > > Man, I need to brush up on regexp I think ;) > > Thx for helping a pitiful procmailer, > > -bill! -- GPG Instructions: http://www.dirac.org/linux/gpg GPG Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D _______________________________________________ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech