Rado S schreef:
Did you mean a filename by that "..."?
I don't think that h-flag matters. Doesn't it cause an error message?
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:
* 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.
procmail mailing list Procmail homepage: http://www.procmail.org/