For example, if locking was taking place and a lock couldn't be acquired, it would be nice if we could send mail clients a response code of INUSE as per https://datatracker.ietf.org/doc/rfc5530/.
In almost all cases, if an err occurs, it will use this to send to the client:
Perhaps we detect if err.code is one of the enumerable values (and same for response, and that both are uppercased exact matches, then we should use those instead?
For example, if locking was taking place and a lock couldn't be acquired, it would be nice if we could send mail clients a response code of
INUSE
as per https://datatracker.ietf.org/doc/rfc5530/.In almost all cases, if an
err
occurs, it will use this to send to the client:Perhaps we detect if
err.code
is one of the enumerable values (and same forresponse
, and that both are uppercased exact matches, then we should use those instead?cc @andris9