mirror of
https://github.com/chatmail/core.git
synced 2026-04-20 15:06:30 +03:00
(experimental) special-case nauta provider to try make it work
This commit is contained in:
@@ -102,7 +102,19 @@ impl LoginParam {
|
||||
};
|
||||
|
||||
let key = format!("{}server_flags", prefix);
|
||||
let server_flags = sql.get_raw_config_int(context, key).unwrap_or_default();
|
||||
let mut server_flags = sql.get_raw_config_int(context, key).unwrap_or_default();
|
||||
|
||||
// XXX special case nauta.cu: enforce cleartext instead of TLS because
|
||||
// Rust-TLS does not support nauta.cu's RSA1024 TLS cert.
|
||||
// see https://github.com/deltachat/deltachat-core-rust/issues/1007
|
||||
if mail_server.ends_with(".nauta.cu") {
|
||||
server_flags |= !0x300; // clear out IMAP_SSL/STARTTLS
|
||||
server_flags |= 0x400; // set IMAP_PLAIN
|
||||
}
|
||||
if send_server.ends_with(".nauta.cu") {
|
||||
server_flags |= !0x30000; // clear out SMTP_SSL/STARTTLS
|
||||
server_flags |= 0x40000; // set SMTP_PLAIN
|
||||
}
|
||||
|
||||
LoginParam {
|
||||
addr,
|
||||
|
||||
Reference in New Issue
Block a user