aboutsummaryrefslogtreecommitdiff
path: root/src/send_message.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-10-30 06:48:54 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-10-30 06:48:54 +0000
commit40ad913f977a5fa22fd39175027effd7e8f069b9 (patch)
treec254aee1911493d4739bb70a38dc32174a0743bf /src/send_message.c
parent0a7c79643d2a551cf4c62a096f25fae8fe2eaf6b (diff)
impelmented POP before SMTP.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1254 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/send_message.c')
-rw-r--r--src/send_message.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/send_message.c b/src/send_message.c
index b490efbb..90782384 100644
--- a/src/send_message.c
+++ b/src/send_message.c
@@ -1,6 +1,6 @@
/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2005 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2006 Hiroyuki Yamamoto
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -53,6 +53,7 @@
#include "manage_window.h"
#include "socket.h"
#include "utils.h"
+#include "inc.h"
#define SMTP_PORT 25
#if USE_SSL
@@ -545,6 +546,13 @@ static gint send_message_smtp(PrefsAccount *ac_prefs, GSList *to_list, FILE *fp)
port = ac_prefs->set_smtpport ? ac_prefs->smtpport : SMTP_PORT;
#endif
+ if (ac_prefs->pop_before_smtp && ac_prefs->protocol == A_POP3) {
+ if (inc_pop_before_smtp(ac_prefs) < 0) {
+ session_destroy(session);
+ return -1;
+ }
+ }
+
dialog = send_progress_dialog_create();
dialog->session = session;