|
|
@ -37,6 +37,7 @@ import androidx.annotation.NonNull;
|
|
|
|
import androidx.preference.PreferenceManager;
|
|
|
|
import androidx.preference.PreferenceManager;
|
|
|
|
|
|
|
|
|
|
|
|
import com.sun.mail.gimap.GmailSSLProvider;
|
|
|
|
import com.sun.mail.gimap.GmailSSLProvider;
|
|
|
|
|
|
|
|
import com.sun.mail.iap.ProtocolException;
|
|
|
|
import com.sun.mail.imap.IMAPFolder;
|
|
|
|
import com.sun.mail.imap.IMAPFolder;
|
|
|
|
import com.sun.mail.imap.IMAPStore;
|
|
|
|
import com.sun.mail.imap.IMAPStore;
|
|
|
|
import com.sun.mail.pop3.POP3Store;
|
|
|
|
import com.sun.mail.pop3.POP3Store;
|
|
|
@ -755,6 +756,14 @@ public class EmailService implements AutoCloseable {
|
|
|
|
throw ex;
|
|
|
|
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)) {
|
|
|
|
} else if ("smtp".equals(protocol) || "smtps".equals(protocol)) {
|
|
|
|
// https://tools.ietf.org/html/rfc5321#section-4.1.3
|
|
|
|
// https://tools.ietf.org/html/rfc5321#section-4.1.3
|
|
|
|
String hdomain = getDefaultEhlo();
|
|
|
|
String hdomain = getDefaultEhlo();
|
|
|
|