Skip to content

Commit

Permalink
fix(logs): Log quota information when account over quota
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Aug 15, 2024
1 parent a209775 commit b1ba829
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,9 @@ exports.real_rcpt_handler = function (next, connection, params) {
_user: userData._id.toString(),
_error: 'user over quota',
_over_quota: 'yes',
_max_quota: quota,
_quota_source: userData.quota ? 'user' : 'config',
_storage_used: userData.storageUsed,
_default_address: rcpt.address() !== userData.address ? userData.address : ''
};
txn.notes.rejectCode = 'MBOX_FULL';
Expand Down

0 comments on commit b1ba829

Please sign in to comment.