procmail
[Top] [All Lists]

Re: Maintain a "carbon copy" for certain threads in mailing lists

2007-07-20 03:14:57
On Fri, Jul 20, 2007 at 11:02:30AM +0200, Dallman Ross wrote:
Eugeny N Dzhurinsky wrote Friday, July 20, 2007 9:25 AM:
[He previously asked:]
I would like to have a carbon copies of all e-mails posted
to certain threads or as replies to my emails posted into
mailing list, sent to my inbox as well.
[To which someone replied:]
  man procmailex
     search for "copy"

Actually the main question is how to track if the message
belongs to thread, I thought in this way:

When some message arrives to mailing list and it's from address
matches my address, I extract the Message-ID from the message
and remember it somewhere

May I humbly suggest it would be useful to ask what you want
to know the first time, and not some other question?  :-)

Okay, really, looks like I messed with explanations :)

Just thinking your question to yourself while asking a different
one is not all that likely to result in useful answers.

Let's think in this way:

I want to IDENTIFY a message belongs to some thread of messages I am
interested in watching, and if the message belongs to the thread - I want to
COPY it into my mailbox. With copying I was answered the question (thanks to
Patrick Shanahan!), but now I'm concerned of that "identifying" task.

Now thank you for pointing me to the -D option of formail, I assume my rules
for procmailrc should look like this:

:0 Wh : /var/tmp/procmail.lock
* ^From:.*my.local.mail
* ^To:.*some.mailing.list
| formail -D 10240 $HOME/msgid.cache

but now I need to check any of e-mail posted to anybody to mailings lists I
subscribed to, for In-reply-to: header

And I'm a bit lost at this point, what and how should I invoke for examining
the header against mailid cache file.

Probably it should like this:

:0 Wh : /var/tmp/procmail.lock
* ^To:.*some.mailing.list
* ? formail -x In-reply-to | xargs -ILINE grep $HOME/msgid.cache "LINE"
$HOME/Maildir/Inbox

but it's still unclear is it possible to pass headers in rules and how to
add msgid of the current e-mail passed the conditions to $HOME/msgid.cache

Thank you in advance!

-- 
Eugene Dzhurinsky
____________________________________________________________
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