On Tue, 17 Jun 1997 08:14:28 -0400,
Stan Ryckman <stanr(_at_)sunspot(_dot_)tiac(_dot_)net> wrote:
At 08:45 AM 6/16/97 -0500, W. Wesley Groleau x4923 wrote:
:0 c
TEMP=|cat
Actually, I think it will put the message into a file called 'TEMP=|cat'.
I think to get the mentioned behavior, you would need:
:0
{ TEMP=|cat }
(where the "c" flag is not needed since this is a non-delivering recipe).
Awaiting corrections now... :-)
Here. :-)
$ cat .prc
:0c
SUBJ=| fgrep Subject:
LOG="$SUBJ
"
$ echo Subject: foof | procmail DEFAULT=/dev/null VERBOSE=yes ./.prc
procmail: [16573] Tue Jun 17 15:49:57 1997
procmail: Rcfile: "/h/3/ykiel/reriksso/scratch/.prc"
procmail: Assigning "MAILDIR=/h/3/ykiel/reriksso"
procmail: Assigning "SUBJ="
procmail: Executing "fgrep,Subject:"
procmail: Assigning "LOG=Subject: foof
"
Subject: foof
procmail: Assigning "LASTFOLDER=/dev/null"
procmail: Opening "/dev/null"
Folder: /dev/null 14
In fact, the c flag is unnecessary, though.
BTW, is this logging error for this type of recipe still present in
3.11pre7? You'd expect the log to display the value of SUBJ, not just
"Assigning SUBJ=".
/* 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>