updated receivedMax definition

This commit is contained in:
Andris Reinman 2019-01-10 14:41:39 +02:00
parent eac64a3533
commit cc08421ab8

View file

@ -352,7 +352,7 @@ module.exports = (db, server, userHandler) => {
* @apiParam {Number} [imapMaxUpload] How many bytes can be uploaded via IMAP during 24 hour
* @apiParam {Number} [imapMaxDownload] How many bytes can be downloaded via IMAP during 24 hour
* @apiParam {Number} [pop3MaxDownload] How many bytes can be downloaded via POP3 during 24 hour
* @apiParam {Number} [receivedMax] How many messages can be received from MX during 1 hour
* @apiParam {Number} [receivedMax] How many messages can be received from MX during 60 seconds
* @apiParam {Object} [mailboxes] Optional names for special mailboxes
* @apiParam {String} [mailboxes.sent="Sent Mail"] Path of Sent Mail folder
* @apiParam {String} [mailboxes.junk="Junk"] Path of spam folder
@ -1140,7 +1140,7 @@ module.exports = (db, server, userHandler) => {
},
received: {
allowed: Number(userData.receivedMax) || 150,
allowed: Number(userData.receivedMax) || 60,
used: received,
ttl: receivedTtl >= 0 ? receivedTtl : false
},
@ -1210,7 +1210,7 @@ module.exports = (db, server, userHandler) => {
* @apiParam {Number} [imapMaxUpload] How many bytes can be uploaded via IMAP during 24 hour
* @apiParam {Number} [imapMaxDownload] How many bytes can be downloaded via IMAP during 24 hour
* @apiParam {Number} [pop3MaxDownload] How many bytes can be downloaded via POP3 during 24 hour
* @apiParam {Number} [receivedMax] How many messages can be received from MX during 1 hour
* @apiParam {Number} [receivedMax] How many messages can be received from MX during 60 seconds
* @apiParam {Boolean} [disable2fa] If true, then disables 2FA for this user
* @apiParam {String[]} disabledScopes List of scopes that are disabled for this user ("imap", "pop3", "smtp")
* @apiParam {Boolean} [disabled] If true then disables user account (can not login, can not receive messages)