mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 15:11:03 +00:00
Handle UTF8=ACCEPT without ENABLE support
This commit is contained in:
parent
9ef4b0a99a
commit
3de2d1ac32
1 changed files with 11 additions and 1 deletions
|
@ -844,7 +844,17 @@ public class IMAPStore extends Store
|
|||
// if server supports UTF-8, enable it for client use
|
||||
// note that this is safe to enable even if mail.mime.allowutf8=false
|
||||
if (p.hasCapability("UTF8=ACCEPT") || p.hasCapability("UTF8=ONLY"))
|
||||
p.enable("UTF8=ACCEPT");
|
||||
try {
|
||||
p.enable("UTF8=ACCEPT");
|
||||
} catch (BadCommandException ex) {
|
||||
eu.faircode.email.Log.e(ex);
|
||||
/*
|
||||
Caused by: com.sun.mail.iap.BadCommandException: ENABLE not supported
|
||||
at com.sun.mail.imap.protocol.IMAPProtocol.enable(SourceFile:55)
|
||||
at com.sun.mail.imap.IMAPStore.login(SourceFile:191)
|
||||
at com.sun.mail.imap.IMAPStore.protocolConnect(SourceFile:246)
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue