Better SMTP ErrorNetwork message

It uses stock string, just as for IMAP errors, and is distinguishable
from IMAP errors: protocol is specified in the error message now.
This commit is contained in:
Alexander Krotov
2020-05-10 23:16:38 +03:00
parent a406e0416f
commit c36227e2fc
2 changed files with 10 additions and 2 deletions

View File

@@ -269,7 +269,7 @@ impl Imap {
let imap_port = config.imap_port;
context.stock_string_repl_str2(
StockMessage::ServerResponse,
format!("{}:{}", imap_server, imap_port),
format!("IMAP {}:{}", imap_server, imap_port),
err.to_string(),
)
};