mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 18:36:30 +03:00
try to fix some smtp todos and do better error logging
This commit is contained in:
10
src/job.rs
10
src/job.rs
@@ -134,9 +134,13 @@ impl Job {
|
||||
/* connect to SMTP server, if not yet done */
|
||||
if !context.smtp.lock().unwrap().is_connected() {
|
||||
let loginparam = LoginParam::from_database(context, "configured_");
|
||||
let connected = context.smtp.lock().unwrap().connect(context, &loginparam);
|
||||
|
||||
if !connected {
|
||||
if context
|
||||
.smtp
|
||||
.lock()
|
||||
.unwrap()
|
||||
.connect(context, &loginparam)
|
||||
.is_err()
|
||||
{
|
||||
self.try_again_later(3, None);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user