diff options
author | Hiro <Hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-06-03 16:40:52 +0000 |
---|---|---|
committer | Hiro <Hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-06-03 16:40:52 +0000 |
commit | ce48e04ddd1b694c599f4f5543597abb89bbead1 (patch) | |
tree | d7a07e1f3fb85645e6a1c9329238e0216b3790d3 /src | |
parent | bf13dc6d511ec175e128a2257a7d0403f1c0414a (diff) |
added missing timeout handling for SMTP.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1078 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r-- | src/send_message.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/send_message.c b/src/send_message.c index c4e81e21..b490efbb 100644 --- a/src/send_message.c +++ b/src/send_message.c @@ -561,6 +561,8 @@ static gint send_message_smtp(PrefsAccount *ac_prefs, GSList *to_list, FILE *fp) (session, send_send_data_progressive, dialog); session_set_send_data_notify(session, send_send_data_finished, dialog); + session_set_timeout(session, prefs_common.io_timeout_secs * 1000); + if (session_connect(session, ac_prefs->smtp_server, port) < 0) { session_destroy(session); send_progress_dialog_destroy(dialog); |