mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-11-17 22:42:09 +08:00
enforce minimum on 1mb chunk size
This commit is contained in:
parent
5297a6edbf
commit
b78107c7aa
1 changed files with 4 additions and 0 deletions
|
|
@ -228,6 +228,10 @@ module.exports = {
|
|||
startFrom: Number(param.partial[0]) || 0,
|
||||
maxLength: Number(param.partial[1]) || 0
|
||||
};
|
||||
|
||||
if (item.partial.maxLength && item.partial.maxLength < 1024 * 1024) {
|
||||
item.partial.maxLength = 1024 * 1024;
|
||||
}
|
||||
}
|
||||
if (!imapTools.fetchSchema.hasOwnProperty(item.item) || !checkSchema(imapTools.fetchSchema[item.item], item)) {
|
||||
return callback(null, {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue