procmail
[Top] [All Lists]

Re: filtering on unique string in a message ID

2003-12-03 21:39:07
On Wed, Dec 03, 2003 at 10:45:51AM -0500, Matthew G. Saroff wrote:
If I get a message with a message ID in either the header or in the body
(as in a bounce message), how to I scan for this to filter.
I'd be looking for a string like:
Message-id: <uniquetext######(_at_)####>

Emm.. pardon me if I'm missing something, but perhaps you could use
something like this:

:0
* ^Message-Id: <uniquetext(_dot_)*(_at_)(_dot_)*>
...

Or, if you don't want to be so restrictive:

:0
* ^Message-Id: <uniquetext
...

If you want to search on the body, put a B in the flags, after the 0.
I'm not well versed enough to know whether this searches both header
and body, or just the body.. nor whether HB would search both.  I'm
sure you could find out by experimentation.

Cheers,
 Allister

-- 
Allister MacLeod <amacleod(_at_)mv3d(_dot_)com> | http://amacleod.is-a-geek.org/
 Elen síla lúmenn'omentielvo.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail


<Prev in Thread] Current Thread [Next in Thread>