aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiro <Hiro@ee746299-78ed-0310-b773-934348b2243d>2006-06-03 16:40:52 +0000
committerHiro <Hiro@ee746299-78ed-0310-b773-934348b2243d>2006-06-03 16:40:52 +0000
commitce48e04ddd1b694c599f4f5543597abb89bbead1 (patch)
treed7a07e1f3fb85645e6a1c9329238e0216b3790d3
parentbf13dc6d511ec175e128a2257a7d0403f1c0414a (diff)
added missing timeout handling for SMTP.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1078 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--ChangeLog5
-rw-r--r--src/send_message.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4a5f8a13..637a2e39 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-06-04
+
+ * src/send_message.c: send_message_smtp(): added missing timeout
+ handling (thanks to Colin).
+
2006-06-01
* libsylph/imap.c: support 8-bit literal (literal8) defined in RFC
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);