X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/ac1820e72ec14b31fc751fb2482a0d31caed21ba..e7f74ffe7d6447eff2f5432f74a16cbf3e7b7508:/procmail/logging diff --git a/procmail/logging b/procmail/logging index 842cd9a..3695b71 100644 --- a/procmail/logging +++ b/procmail/logging @@ -21,7 +21,9 @@ original-to: $ORIGINAL_TO subject: $SUBJECT$NL" TRAP="DESTFILE=\"\${LASTFOLDER#$BASE/}\"; + /usr/bin/lockfile -4 -r50 -l180 $PMVAR/lock; trap \"echo >> '$THISLOGFILE'; - cat '$THISLOGFILE' >> $MASTERLOGFILE\" 0" + /bin/cat '$THISLOGFILE' >> $MASTERLOGFILE; + /bin/rm -f $PMVAR/lock\" 0" #VERBOSE=yes