On Wed, 24 Sep 1997 14:39:32 +0200 (MET DST),
kle(_at_)uni-paderborn(_dot_)de wrote:
it seems to match multiple lines (in this case an extended 'To:' header
line; and I did not use 'formail -c' before, so they really get feeded as
different lines) with this regexp in a condition line:
Wrapped fields are unwrapped internally for purposes of matching.
Behold:
$ cat ~/scratch/rc
:0
* ^Subject: \/.+
{ LOG="$MATCH" }
:0
/dev/null
$ head -5 /usr/dict/words | sed -e '1s/^/Subject: /' -e '1!s/^/ /' |
procmail VERBOSE=yes ~/scratch/rc
procmail: [26292] Wed Sep 24 17:02:28 1997
procmail: Rcfile: "/h/3/ykiel/reriksso/scratch/rc"
procmail: Assigning "MAILDIR=/h/3/ykiel/reriksso"
procmail: Assigning "MATCH="
procmail: Matched "a AAA AAAS aardvark Aarhus"
procmail: Match on "^Subject: \/.+"
procmail: Assigning "LOG=a AAA AAAS aardvark Aarhus"
a AAA AAAS aardvark Aarhusprocmail: Assigning "LASTFOLDER=/dev/null"
procmail: Opening "/dev/null"
Folder: /dev/null 40
It's in the manual, too.
/* era */
--
Paparazzi of the Net: No matter what you do to protect your privacy,
they'll hunt you down and spam you. <http://www.iki.fi/~era/spam/>