On Mon, 4 Aug 97 22:46:27 -0400,
Timothy J Luoma <luomat+procmail(_at_)luomat(_dot_)peak(_dot_)org> wrote:
If I want to match _either_ of these Subjects but ONLY these exact Subject,
is this the way?
* ^Subject: (Read Receipt|Mottagarkvitto)$
Strictly speaking, the $ will match an embedded newline in a
multi-line Subject. This would be a legal Subject field:
Subject: Mottagarkvitto
Visst, jag fick ditt meddelande. Tack!
... both lines of it. (Yes, this is a pathological example.)
So to be 101% sure you're only catching one-line Subjects, you might
try something like this:
* ^Subject: (Read Receipt|Mottagarkvitto)$[^ ]
(i.e. if it contains whitespace after the newline, it's a multiline
Subject.)
This is a nit that could have been left unpicked. Your approach is
fine.
Hope this helps,
/* era */
--
Defin-i-t-e-ly. Sep-a-r-a-te. Gram-m-a-r. <http://www.iki.fi/~era/>
* Enjoy receiving spam? Register at <http://www.iki.fi/~era/spam.html>