sync with sylpheed 0.7.2cvs14
[claws.git] / src / pop.c
index b672504627a0291a9445282d4b65129e4a93b807..fd6e882e585b26a0698ca87d019cf2a560133139 100644 (file)
--- a/src/pop.c
+++ b/src/pop.c
@@ -436,7 +436,8 @@ gint pop3_retr_recv(SockInfo *sock, gpointer data)
 
        if ((ok = pop3_ok(sock, NULL)) == PS_SUCCESS) {
                if (recv_write_to_file(sock, (file = get_tmp_file())) < 0) {
-                       state->inc_state = INC_NOSPACE;
+                       if (state->inc_state == INC_SUCCESS)
+                               state->inc_state = INC_NOSPACE;
                        return -1;
                }