1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-05 19:42:04 +02:00

set a smtp-timeout

This commit is contained in:
B. Petersen 2018-06-18 22:20:28 +02:00
parent 83f3a3480f
commit d3c9976032

View file

@ -123,6 +123,7 @@ int mrsmtp_connect(mrsmtp_t* ths, const mrloginparam_t* lp)
mrmailbox_log_error(ths->m_mailbox, 0, "SMTP-object creation failed.");
goto cleanup;
}
mailsmtp_set_timeout(ths->m_hEtpan, 30); // 30 seconds until actions are aborted, this is also used in mailcore2
mailsmtp_set_progress_callback(ths->m_hEtpan, body_progress, ths);
#if DEBUG_SMTP
mailsmtp_set_logger(ths->m_hEtpan, logger, ths);