procmail
[Top] [All Lists]

Re: Overwriting Vice Appending to MAILDIR Files

1998-10-05 19:18:33
At 12:39 AM 10/6/98 GMT, John Kent wrote:
Greetings,

How do I get procmail to overwrite files in my MAILDIR vice appending to them?

I've tried many things, most recently:

       :0
       * ^Subject.*O2
       * ^Subject.*usage
       | /sbin/cat > O2_usage.rpt

All without success.  In the above case I get a "File exists" message
and it writes  it to the mbox not O2_usage.rpt.

I'm going to guess you're using csh or similar, and in your .cshrc
you've "set noclobber" or something like that.

Try the line:
        SHELL=/bin/sh
near the top of your .procmailrc

Cheers,
Stan

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