add SMTP_CONNECTED and IMAP_CONNECTED events

This commit is contained in:
holger krekel
2019-07-01 22:27:44 +02:00
parent 183a49eca0
commit 7a053b9f93
4 changed files with 8 additions and 10 deletions

View File

@@ -138,15 +138,9 @@ impl Smtp {
.credentials(creds)
.connection_reuse(lettre::smtp::ConnectionReuseParameters::ReuseUnlimited);
self.transport = Some(client.transport());
unsafe {
dc_log_event(
context,
Event::SMTP_CONNECTED,
0,
b"SMTP-LOGIN ok" as *const u8
as *const libc::c_char,
);
}
log_event!(context, Event::SMTP_CONNECTED,
0, "SMTP-LOGIN as {} ok", as_str(lp.send_user),
);
1
}
Err(err) => {