procmail
[Top] [All Lists]

Re: chowning messges delivered to specific user through /etc/procmail

2002-10-04 14:08:22
Mark Valites wrote,

| With LOGABSTRACT set to yes, I get this error:
|
| procmail: Error while writing to "chown"

| I've been banging my head off the desk for a couple days now & haven't
| found enlightenment in any of the manpages yet.  Is this the correct way
| to deliver to my special account & make them own it?  Can I do it with
| some type of variable?  Any help is appreciated ahead of time.

Read about the `i' flag in the procmailrc(5) man page.  In short, chown
doesn't read, nor need to read, any of the message text.  When an action line
in a procmail recipe doesn't accept the entire text fed to it (the head if the
`h' flag is present, the body if the `b' flag is in use, or the entire message
if you use neither of the two flags or both of them), procmail believes
something went wrong.  Using the `i' flag tells procmail not to expect the
entire text to be read.

Short answer: add an `i' flag to the call to chown, or put the call to chown
in a dummy backtick assignment, or put the call to chown into a TRAP.


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