Rado S schreef:
LOGFOLDER=...
Did you mean a filename by that "..."?
:0hc
I don't think that h-flag matters. Doesn't it cause an error message?
{
:0h:
$LOGFOLDER
:0h:$LOGFOLDER
Shouldn't that be
:0 h :$LOGFOLDER$LOCKEXT
which can be simplified to
:0 h :
because procmail defaults to $LOGFOLDER$LOCKEXT there?
| printf "\n%s\n\n" $LASTFOLDER >> $LOGFOLDER
}
Or capture the header contents into $MATCH and LOG that:
:0
* H ?? ^^\/(.*$)+
{
SAVELOGFILE = $LOGFILE
LOGFILE = $LOGFOLDER
LOG = "$MATCH$n$LOGFOLDER$n$n"
LOGFILE = $SAVELOGFILE
}
(where $n is a newline)
Because I'm not sure that the logfile can't be corrupted by
concurrent writes despite printing just a single line: there is
always a race condition.
My experience is that a LOG="whatever" is never corrupted.
--
Groet, Ruud
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail