mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 13:47:05 +02:00
Improved debug info
This commit is contained in:
@@ -1370,6 +1370,19 @@ public class EmailService implements AutoCloseable {
|
||||
}
|
||||
}
|
||||
|
||||
static String getEncryptionName(int type) {
|
||||
switch (type) {
|
||||
case ENCRYPTION_SSL:
|
||||
return "ssl";
|
||||
case ENCRYPTION_STARTTLS:
|
||||
return "starttls";
|
||||
case ENCRYPTION_NONE:
|
||||
return "none";
|
||||
default:
|
||||
return Integer.toString(type);
|
||||
}
|
||||
}
|
||||
|
||||
static class UntrustedException extends MessagingException {
|
||||
private X509Certificate certificate;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user