mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 06:38:29 +02:00
Fetch SMTP max message size
This commit is contained in:
@@ -634,6 +634,17 @@ public class EmailService implements AutoCloseable {
|
||||
return (SMTPTransport) iservice;
|
||||
}
|
||||
|
||||
Integer getMaxSize() {
|
||||
SMTPTransport transport = getTransport();
|
||||
|
||||
String size = transport.getExtensionParameter("SIZE");
|
||||
if (!TextUtils.isEmpty(size) && TextUtils.isDigitsOnly(size))
|
||||
return Integer.parseInt(size);
|
||||
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
boolean hasCapability(String capability) throws MessagingException {
|
||||
Store store = getStore();
|
||||
if (store instanceof IMAPStore)
|
||||
|
||||
Reference in New Issue
Block a user