2005-01-28 [colin] 1.0.0cvs23.1
[claws.git] / src / folderview.c
index 1511597973a07277ce1b7aecaf36e27b9fb84b13..ab3a5534a62b7ce6ba096abd09dc9a5adc8d4798 100644 (file)
@@ -1807,7 +1807,10 @@ static void folderview_empty_trash_cb(FolderView *folderview, guint action,
        
        for (cur = mlist ; cur != NULL ; cur = cur->next) {
                MsgInfo * msginfo = (MsgInfo *) cur->data;
-               partial_mark_for_delete(msginfo);
+               /* is it partially received? (partial_recv isn't cached) */
+               if (msginfo->total_size != 0 && 
+                   msginfo->size != (off_t)msginfo->total_size)
+                       partial_mark_for_delete(msginfo);
        }
        procmsg_msg_list_free(mlist);