procmail
[Top] [All Lists]

Re: truncate

2003-06-16 11:42:50
Thus spake Dave Stern - Former Rocket Scientist 
(dave(_at_)umiacs(_dot_)umd(_dot_)edu) [16/06/03 13:16]:
:0:
* ^Subject:.*test
* > 1000
| head -100 >>$MAILDIR/truncated

That recipe would not produce these logs:

procmail: Match on "^Subject: .*test"
procmail: Match on "> 1000"
procmail: Locking "/export/home/me/mail/test.lock"
procmail: Executing " head -100 >>$MAILDIR/test"
procmail: Error while writing to " head -100 >>$MAILDIR/test"

It /should/ say, on lines 4 and 5:

    procmail: Executing " head -100 >>$MAILDIR/truncated"
    procmail: Error while writing to " head -100 >>$MAILDIR/truncated"

(s/test/truncated/)

Are you sure you're looking at the right thing?

That aside, I'd suggest you take a look at the file $MAILDIR/test and/or
$MAILDIR/truncated, and look at their permissions.  If they don't exist,
look at $MAILDIR, and /its/ permissions.

As well, it's good practice to specify full pathnames to your binaries, just
in case.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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