Re: LINUX

Riley Williams (rhw@MemAlpha.CX)
Fri, 2 Jul 1999 00:11:40 +0100 (GMT)


Hi Mike.

>>> # Store linux kernel messages into a different folder.
>>> :0:
>>> * ^TOlinux-kernel@vger
>>> LINUX-KERNEL

>> As written, that should miss EVERY message. The probable correct
>> version thereof would be...

> Nope. That rule has worked for eons. Pay close attention to
> the syntax: It uses "TO" and not "To" which is completely
> different.

> The "TO" is a special procmail macro, and this recipe was
> constructed with care from the procmail documentation.

===8<=== CUT ===>8===

> Just so you don't have to hunt through docs, here is the
> documentation on the "TO" macro which is from the procmailrc
> manpage:

> MISCELLANEOUS
> If the regular expression contains `^TO' it will be sub-
> stituted by `(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-
> Envelope|Apparently(-Resent)?)-To):(.*[^a-zA-Z])?)', which
> should catch all destination specifications.

Noting that many of the emails with Linux-Kernel in the CC list use
either 'CC:' or 'cc:' rather than the 'Cc:' that your extract quotes,
I would hope the manpage to be slightly out of date in that regard.
Unfortunately, procmail specifications ARE case sensitive...

> So you can see, it covers all the cases that you mention, and
> many more. It is fantastic for nailing a list down easily.

I have to admit that I wasnae aware of that macro, but in my case, I
now use the '^Sender:' line to detect what should go where, as I'm on
several mailing lists that regularly get cross-postings and prefer to
separate them and have a copy in each relevant folder - I keep several
archives of the various folders for perusal when I'm less rushed...

Best wishes from Riley.

+----------------------------------------------------------------------+
| There is something frustrating about the quality and speed of Linux |
| development, ie., the quality is too high and the speed is too high, |
| in other words, I can implement this XXXX feature, but I bet someone |
| else has already done so and is just about to release their patch. |
+----------------------------------------------------------------------+
* ftp://ftp.MemAlpha.cx/pub/rhw/Linux
* http://www.MemAlpha.cx/kernel.versions.html

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/