From b1ba829cd91ea5d34ae38b29ed1615a30b86b9a8 Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Thu, 15 Aug 2024 10:58:03 +0300 Subject: [PATCH] fix(logs): Log quota information when account over quota --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index df564ff..9c0910d 100644 --- a/index.js +++ b/index.js @@ -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';