procmail
[Top] [All Lists]

Re: 2 quick questions

1996-01-09 18:12:41
At 14:57 96-01-09, patrick wrote:

First, how do I add a carrige return to a string, for example I have a
statement like { ERR="error" }.  I can generate the error message fine,
but wheen there are multiple errors they are all strung together.  What
would I put in to add a linefeed to the above statement?

I assume you're intending you use ERR with the procmail LOG statement, as in
    LOG=$ERR

There are several approaches, the one I use is to put the following at the
top of my .procmailrc file:
NL='
'
(note the line break inbetween the quotes).

Then, you could log errors as:
    LOG=$ERR$NL
or
    ERR="error$NL"
    LOG=$ERR

--Hal
Hal Wine <hal(_at_)dtor(_dot_)com>     voice: 510/482-0597


<Prev in Thread] Current Thread [Next in Thread>