Re: can I filter messages where I am a cc: recipient

2002-08-13 Thread Allie C Martin

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

In [EMAIL PROTECTED]">mid:[EMAIL PROTECTED],
Januk Aggarwal [JA] wrote:'

 (?ims)^CC:.*[EMAIL PROTECTED]

 shouldn't work.

JA Just be slightly careful. Yours will match if Dwight's address appears
JA *anywhere* in the headers after the CC line. That includes the To: or
JA From: or any other header (however rare that might be.)

JA A more restricted regexp would look something like:

JA (?im-s)^CC:.*?(\n\s.*)*([EMAIL PROTECTED])

I see what you mean. :) It would catch all my messages since MDaemon
adds an X Header containing my e-mail address at the bottom of the
headers.

However, sometimes the CC list is in multiple lines and there are more
than one e-mail address per line. What do we do for that?

- --
Allie C Martin \  TB! v1.62/Beta1  Windows XP Pro
 List Moderator/   PGP Key - http://pub-key.ac-martin.com
'
-BEGIN PGP SIGNATURE-

iD8DBQE9WNtjV8nrYCsHF+IRAgRNAJ9j3o4NgrybazfC79q7L9tVRgw/qQCfVdu7
pl8aHpVmrtj+UrDfENoc1mY=
=G/nL
-END PGP SIGNATURE-


__
Archives   : http://tbtech.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]




Re: can I filter messages where I am a cc: recipient

2002-08-13 Thread Dwight A Corrin

On Tuesday, August 13, 2002, 10:56:16 AM, Januk Aggarwal wrote:


 However, sometimes the CC list is in multiple lines and there are more
 than one e-mail address per line. What do we do for that?

 That's included in the regexp I sent:

JA (?im-s)^CC:.*?(\n\s.*)*([EMAIL PROTECTED])
^

yes, this seems to have done the trick. Allie's original filter
captured a couple of old messages where the last headers were

 X-Return-Path: [EMAIL PROTECTED]
 X-MDaemon-Deliver-To: [EMAIL PROTECTED]

I drug them back and changed to Januk's filter, and they stayed put. I
also drug back a message with a multi-line cc: list, and it still got
filtered.

-- 
Dwight A. Corrin
P O Box 47828
Wichita KS 67201-7828
316.263.9706  fax 316.263.6385
mailto:[EMAIL PROTECTED]
Using The Bat! 1.60i on Windows XP version 5,1



__
Archives   : http://tbtech.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]




Re: can I filter messages where I am a cc: recipient

2002-08-12 Thread Jonathan Angliss

Hi Allie,
On Mon, 12 Aug 2002 05:32:31 -0500, you wrote:

 JA ^CC:.*[EMAIL PROTECTED]*
 
 I think you meant to put '.*' at the end, right? :)
 
 That wouldn't help anyway.
 
 JA I'm not sure how the wildcards work in TB!s regexp, but IIRC in
 JA procmail * matches all, while . matches all but new line (or
 JA something like that).
 
 WildCards are different from regex.

I guess so.  I guess I'm just used to the procmail way of doing things ;) I'm
still learning ;)

-- 
Jonathan Angliss
([EMAIL PROTECTED])

__
Archives   : http://tbtech.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]




Re: can I filter messages where I am a cc: recipient

2002-08-12 Thread Allie C Martin

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

In [EMAIL PROTECTED]">mid:[EMAIL PROTECTED],
Jonathan Angliss [JA] wrote:'

JA I guess so. I guess I'm just used to the procmail way of doing
JA things ;) I'm still learning ;)

The same here. When I joined the TB! list, I didn't even know what a
wild card was. ;)

TB! and these lists are what stimulated me to learn regular
expressions. Before this, I didn't even see why learning them would be
useful. :)

- --
Allie C Martin \  TB! v1.62/Beta1  Windows XP Pro
 List Moderator/   PGP Key - http://pub-key.ac-martin.com
'
-BEGIN PGP SIGNATURE-

iD8DBQE9V6T/V8nrYCsHF+IRApGkAJwM5z8wtaJwTX+0XVjduttYj3ACbwCdEySJ
CMV9xSYsXzI8gU0LTLdXWUQ=
=5OpY
-END PGP SIGNATURE-


__
Archives   : http://tbtech.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]




Re: can I filter messages where I am a cc: recipient

2002-08-12 Thread Januk Aggarwal

Hi Allie,

Monday, August 12, 2002 at 05:32 GMT -0500, was when inspiration
required Allie Martin to write:

 I don't see why

 (?ims)^CC:.*[EMAIL PROTECTED]

 shouldn't work.

Just be slightly careful. Yours will match if Dwight's address appears
*anywhere* in the headers after the CC line. That includes the To: or
From: or any other header (however rare that might be.)

A more restricted regexp would look something like:

(?im-s)^CC:.*?(\n\s.*)*([EMAIL PROTECTED])

-- 
Thanks for writing,
 Januk Aggarwal

Despite these words, this page is blank.


__
Archives   : http://tbtech.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]