procmail
[Top] [All Lists]

Re: rm a non-existent file

1997-10-16 10:44:42
Era Eriksson suggested this to Ralph Henderson (who wants to overwrite a
folder instead of appending to it):

|     :0:
|     | cat >mailfile

You need to name the local lockfile there; procmail has nothing to infer
a name from and will complain.

      :0:mailfile$LOCKEXT
      | cat > mailfile

|  > Finally, is that lockfile needed?
| 
| Since you're overwriting the file, not really, I guess.

That depends on the lengths of the writes to it.  A lockfile is probably a
good idea.  On the other hand, overwriting recipes usually are for mail that
comes in infrequently and are not likely, unless a horrible mail backup has
just gotten unjammed, to be invoked by two messages being processed at the
same time.

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