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.
Wouldn't it be easier to just add the line DROPPRIVS=yes in there? If
done as soon as you know you're going to deliver the mail to the virus
account then there should be no problems doing that - I don't think. Then
there's no messing around with calls to chmod or anything.
Later,
Derek
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail