Fetch SMTP max message size

This commit is contained in:
M66B
2020-07-01 23:34:53 +02:00
parent e109fa4b46
commit b39ed003b6
8 changed files with 2310 additions and 4 deletions

View File

@@ -555,6 +555,10 @@ public class ServiceSend extends ServiceBase {
throw new IOException("Test");
db.identity().setIdentityState(ident.id, "connected");
Integer max_size = iservice.getMaxSize();
if (max_size != null)
db.identity().setIdentityMaxSize(ident.id, max_size);
Address[] to = imessage.getAllRecipients();
String via = "via " + ident.host + "/" + ident.user +
" to " + TextUtils.join(", ", to);