era eriksson <era(_at_)iki(_dot_)fi> writes:
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:
Bzzzt. Procmail handles header field wrapping internally, such that the
regexp engine acts like the embedded newline isn't there.
Subject: Mottagarkvitto
Visst, jag fick ditt meddelande. Tack!
... both lines of it. (Yes, this is a pathological example.)
Nope:
lunen% cat foo
VERBOSE = on
:0
* ^Subject: foo$
/dev/null
:0
/dev/null
lunen% procmail foo
Subject: foo
bar
procmail: [9955] Tue Aug 5 06:53:02 1997
procmail: No match on "^Subject: foo$"
procmail: Assigning "LASTFOLDER=/dev/null"
procmail: Opening "/dev/null"
Folder: /dev/null 18
lunen%
...
This is a nit that could have been left unpicked. Your approach is
fine.
Sorry, the nit has been pre-picked.
Philip Guenther