procmail
[Top] [All Lists]

Re: procmail exit status with quotas and sendmail

1998-11-24 12:21:21
Mauro Rizzi <mauro(_dot_)rizzi(_at_)unimi(_dot_)it> writes:
How can I make sendmail recognize when procmail fails to deliver one mail
message because of quota exceeded, so that sendmail can return an
appropriate message to the sender?
...
Procmail recognizes when it fails because of quota exceeded and prints  an
appropriate syslog message, but it seems to return the EX_CANTCREAT exit
status (which is collected by sendmail) for any kind of failure, being the
failure caused by quota or by any other reason.

Well, what error code do you think it should return?  There is no
specific error code allocated for this, so you would have to define
your own then hack both the procmail and sendmail sources to generate
and recognize it.


Philip Guenther

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