mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 06:38:29 +02:00
Enable X-UIDONLY if available
This commit is contained in:
@@ -37,6 +37,7 @@ import androidx.annotation.NonNull;
|
||||
import androidx.preference.PreferenceManager;
|
||||
|
||||
import com.sun.mail.gimap.GmailSSLProvider;
|
||||
import com.sun.mail.iap.ProtocolException;
|
||||
import com.sun.mail.imap.IMAPFolder;
|
||||
import com.sun.mail.imap.IMAPStore;
|
||||
import com.sun.mail.pop3.POP3Store;
|
||||
@@ -755,6 +756,14 @@ public class EmailService implements AutoCloseable {
|
||||
throw ex;
|
||||
}
|
||||
|
||||
// Verizon
|
||||
if (istore.hasCapability("X-UIDONLY") && istore.hasCapability("ENABLE"))
|
||||
try {
|
||||
istore.enable("X-UIDONLY");
|
||||
} catch (ProtocolException ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
|
||||
} else if ("smtp".equals(protocol) || "smtps".equals(protocol)) {
|
||||
// https://tools.ietf.org/html/rfc5321#section-4.1.3
|
||||
String hdomain = getDefaultEhlo();
|
||||
|
||||
Reference in New Issue
Block a user