use RECOMMENDED_FILE_SIZE also for sys.msgsize_max_recommended

This commit is contained in:
B. Petersen
2020-01-28 16:13:34 +01:00
committed by Alexander Krotov
parent 893eb8b73b
commit a80632ab36
2 changed files with 3 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ use crate::stock::StockMessage;
// (brutto examples: web.de=50, 1&1=40, t-online.de=32, gmail=25, posteo=50, yahoo=25, all-inkl=100).
// as an upper limit, we double the size; the core won't send messages larger than this
// to get the netto sizes, we subtract 1 mb header-overhead and the base64-overhead.
const RECOMMENDED_FILE_SIZE: u64 = 24 * 1024 * 1024 / 4 * 3;
pub const RECOMMENDED_FILE_SIZE: u64 = 24 * 1024 * 1024 / 4 * 3;
const UPPER_LIMIT_FILE_SIZE: u64 = 49 * 1024 * 1024 / 4 * 3;
#[derive(Debug, Clone)]