mirror of
https://github.com/i2p/i2p.i2p.git
synced 2024-12-06 19:27:00 +01:00
susimail: Update size limits to match current postman limits
This commit is contained in:
@@ -17,9 +17,9 @@
|
||||
<servlet-name>SusiMail</servlet-name>
|
||||
<servlet-class>i2p.susi.webmail.WebMail</servlet-class>
|
||||
<multipart-config>
|
||||
<!-- 23 MB. See SMTPClient for discussion -->
|
||||
<max-file-size>24117248</max-file-size>
|
||||
<max-request-size>24117248</max-request-size>
|
||||
<!-- 7.27 MB. See SMTPClient for discussion -->
|
||||
<max-file-size>7629902</max-file-size>
|
||||
<max-request-size>7629902</max-request-size>
|
||||
<file-size-threshold>131072</file-size-threshold>
|
||||
</multipart-config>
|
||||
</servlet>
|
||||
|
||||
@@ -51,14 +51,14 @@ import net.i2p.util.Log;
|
||||
public class SMTPClient {
|
||||
|
||||
/**
|
||||
* 31.84 MB
|
||||
* smtp.postman.i2p as of 2017-12.
|
||||
* 10.00 MB
|
||||
* smtp.postman.i2p as of 2024-06-22.
|
||||
* @since 0.9.33
|
||||
*/
|
||||
public static final long DEFAULT_MAX_SIZE = 33388608;
|
||||
public static final long DEFAULT_MAX_SIZE = 10485760;
|
||||
|
||||
/**
|
||||
* About 23.25 MB.
|
||||
* 7629902 ~= 7.27 MB
|
||||
* Base64 encodes 57 chars to 76 + \r\n on a line
|
||||
* @since 0.9.33
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user