procmail
[Top] [All Lists]

Re: Using References: and/or In-Reply-To: headers

2006-06-21 14:16:08
On Wed, Jun 21, 2006 at 12:20:15PM -0700, Don Russell wrote:

Now... wouldn't it be cool if I could add the message ID of *my*
message to some file/db (similar to the msgid.cache file used
with formail -D) and then, as I receive new messages for that
list, I check the "referto.cache" and flag the incomng message
accordingly.

That way, for such high-volume mailing lists, I can help ensure
that I see any/all replies to my postings.

This wouldn't be that hard to bend "formail -D" to do.

We've also gotten formail to cache other headers with some
prestidigitation on this list before.  Check the archives for that.
Or, never mind, I've done it below.

I've test this.  It seems to work.


   LOCKFILE = msgid.russell$LOCKEXT
   :0 
   * ^Message-id:(_dot_)*(_at_)drussell[(_dot_)]dnsalias[(_dot_)]com>
   * ? formail -D 8191 msgid.russell
   { }
   LOCKFILE

   :0 fw h
   * ^In-Reply-To:(_dot_)*(_at_)drussell[(_dot_)]dnsalias[(_dot_)]com>
   * ^X-Beenthere:.*procmail
   * ? formail -IMessage-ID -RIn-Reply-To Message-ID -D 8192 msgid.russell
   | formail -A "X-Special-Flag: Followup to me!"

Dallman

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail