aboutsummaryrefslogtreecommitdiff
path: root/libsylph/pop.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2014-04-04 06:36:44 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2014-04-04 06:36:44 +0000
commit49dd2346b88a1ef4ae2296ff1ba4c1a53b9e7a56 (patch)
treef87ff89c255a70d3d09bd6e1161df18bd82706c3 /libsylph/pop.c
parente7106fcff4baaa8e572b58e5f574e3527bfb5a86 (diff)
fixed Bug #193: Lose mails when mailbox is inaccessible.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3375 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/pop.c')
-rw-r--r--libsylph/pop.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libsylph/pop.c b/libsylph/pop.c
index aa41b53c..03c96cba 100644
--- a/libsylph/pop.c
+++ b/libsylph/pop.c
@@ -1,6 +1,6 @@
/*
* LibSylph -- E-Mail client library
- * Copyright (C) 1999-2008 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2014 Hiroyuki Yamamoto
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -798,7 +798,7 @@ static gint pop3_session_recv_msg(Session *session, const gchar *msg)
val = pop3_getrange_stat_send(pop3_session);
break;
case POP3_GETRANGE_STAT:
- if ((val = pop3_getrange_stat_recv(pop3_session, body)) < 0)
+ if ((val = pop3_getrange_stat_recv(pop3_session, body)) != PS_SUCCESS)
return -1;
if (pop3_session->count > 0)
val = pop3_getrange_uidl_send(pop3_session);
@@ -809,7 +809,7 @@ static gint pop3_session_recv_msg(Session *session, const gchar *msg)
if (val == PS_NOTSUPPORTED)
pop3_session->error_val = PS_SUCCESS;
else if ((val = pop3_getrange_last_recv
- (pop3_session, body)) < 0)
+ (pop3_session, body)) != PS_SUCCESS)
return -1;
if (pop3_session->cur_msg > 0)
val = pop3_getsize_list_send(pop3_session);
@@ -901,7 +901,7 @@ static gint pop3_session_recv_data_as_file_finished(Session *session, FILE *fp,
g_return_val_if_fail(pop3_session->state == POP3_RETR_RECV, -1);
- if (pop3_retr_recv(pop3_session, fp, len) < 0)
+ if (pop3_retr_recv(pop3_session, fp, len) != PS_SUCCESS)
return -1;
/* disconnected? */