sync with sylpheed 0.4.67cvs7-8
[claws.git] / src / inc.c
index 6588b60f9321ff25049478000ea3382fac0e70aa..811e9fef7e7b50be71b0c2f40892e14cb42255be 100644 (file)
--- a/src/inc.c
+++ b/src/inc.c
@@ -812,13 +812,11 @@ gint inc_drop_message(const gchar *file, Pop3State *state)
                                    GINT_TO_POINTER(1));
        }
 
-       if ((msgnum = folder_item_add_msg(dropfolder, file)) < 0) {
+       if ((msgnum = folder_item_add_msg(dropfolder, file, TRUE)) < 0) {
                unlink(file);
                return -1;
        }
 
-       unlink(file);
-
        if (prefs_filtering != NULL) {
                /* new filtering */
                if (state->ac_prefs->filter_on_recv) {