wildduck/lib/consts.js

28 lines
689 B
JavaScript
Raw Normal View History

'use strict';
module.exports = {
// home many modifications to cache before writing
BULK_BATCH_SIZE: 150,
// how often to clear expired messages
GC_INTERVAL: 10 * 60 * 1000,
// artificail delay between deleting next expired message in ms
2017-07-17 21:32:31 +08:00
GC_DELAY_DELETE: 100,
MAX_STORAGE: 1 * (1024 * 1024 * 1024),
MAX_RECIPIENTS: 2000,
MAX_FORWARDS: 2000,
2017-07-18 16:17:36 +08:00
JUNK_RETENTION: 30 * 24 * 3600 * 1000,
2017-07-21 02:33:41 +08:00
MAILBOX_COUNTER_TTL: 24 * 3600,
SCHEMA_VERSION: '1.0',
// how much plaintext to store. this is indexed with a fulltext index
MAX_PLAINTEXT_CONTENT: 2 * 1024,
// how much HTML content to store. not indexed
MAX_HTML_CONTENT: 300 * 1024
};