* "Miguel A. Urech" writes:

> I need/want to set up a manual filter to flag messages that include a
> MID from me (my domain) in the References header line.

((?:\nReferences:[^\n]*?)(?:\n\s[^\n]*?)*(@ermspain.com>))

This one finds your FQDM (here @ermspain.com>) in the
References: header lines only. Here is a short example:

,---- [ part of a mail header (with line numbers) ]
|    [...]
| 1  X-another-X-Header: [EMAIL PROTECTED]>
| 2  In-Reply-To: <[EMAIL PROTECTED]>
| 3  References: <[EMAIL PROTECTED]> 
| 4   <[EMAIL PROTECTED]>
| 5   <18921040171.20030121145911@[EMAIL PROTECTED]>
| 6   <[EMAIL PROTECTED]>
| 7   <[EMAIL PROTECTED]> 
| 8   <[EMAIL PROTECTED]>
| 9   <[EMAIL PROTECTED]>
|10  X-another-X-Header: [EMAIL PROTECTED]>
|    [...]
`----

The regexp matches the Message-ID in line 3. If the message id in
line 3 was different it would match the one in line 7, but never the
one in line 10. It ignores the one in line 1 (X-another-X-Header
could stand for From:, CC:, Message-ID, etc.),2 or 10. The
References: header is the only header that counts for this regular
expression.

((?:\nReferences:[^\n]*?)(?:\n\s[^\n]*?)*(@ermspain.com>))

It looks for the string References: only at the beginning of
lines. If the domain part of the message id isn't in this first line
(line 3 from our example) it examines the following lines (4-9) as
long as they start with a whitespace character (folding).

BTW if ermspain.com isn't "unique" enough (also interesting for gmx,
hotmail, myrealbox, etc. users) there is a way in the TB! to
customize the domain part of your message-id:

In the account properties choose a (invalid) From: address like
[EMAIL PROTECTED] and your message ids will look like
[EMAIL PROTECTED] Okay, you have to change back your
from adress to the correct one (automatically in your templates via
%FROM="Miguel <[EMAIL PROTECTED]>)

This makes it easier to automagically detect even indirect answers
to your postings. HTH.
-- 
Best regards, Carsten


________________________________________________________
 Current version is 1.61 | "Using TBTECH" information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to