diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-10-30 06:48:54 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-10-30 06:48:54 +0000 |
commit | 40ad913f977a5fa22fd39175027effd7e8f069b9 (patch) | |
tree | c254aee1911493d4739bb70a38dc32174a0743bf /libsylph | |
parent | 0a7c79643d2a551cf4c62a096f25fae8fe2eaf6b (diff) |
impelmented POP before SMTP.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1254 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r-- | libsylph/pop.c | 5 | ||||
-rw-r--r-- | libsylph/pop.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libsylph/pop.c b/libsylph/pop.c index be6baf45..0ede3e71 100644 --- a/libsylph/pop.c +++ b/libsylph/pop.c @@ -758,7 +758,10 @@ static gint pop3_session_recv_msg(Session *session, const gchar *msg) break; case POP3_GETAUTH_PASS: case POP3_GETAUTH_APOP: - pop3_getrange_stat_send(pop3_session); + if (pop3_session->auth_only) + pop3_logout_send(pop3_session); + else + pop3_getrange_stat_send(pop3_session); break; case POP3_GETRANGE_STAT: if (pop3_getrange_stat_recv(pop3_session, body) < 0) diff --git a/libsylph/pop.h b/libsylph/pop.h index 6078fd27..ee2e983e 100644 --- a/libsylph/pop.h +++ b/libsylph/pop.h @@ -127,6 +127,8 @@ struct _Pop3Session GHashTable *uidl_table; + gboolean auth_only; + gboolean new_msg_exist; gboolean uidl_is_valid; |