2006-02-05 [colin] 2.0.0cvs12
[claws.git] / src / folderview.c
index fb28a1f8539ac104408ffc534489ba1dd1eb235f..6eaf6bdf640bb533ca27ac65214d7506f08655a9 100644 (file)
@@ -2466,7 +2466,7 @@ static gboolean folderview_drag_motion_cb(GtkWidget      *widget,
                            FOLDER_CLASS(item->folder)->copy_msg != NULL &&
                            FOLDER_CLASS(item->folder)->create_folder != NULL)
                                acceptable = TRUE;
-               } else if (srcwidget == NULL) {
+               } else {
                        /* comes from another app */
                        /* we are adding messages, so only accept folder items that are 
                           no root items and can copy messages */
@@ -2615,10 +2615,14 @@ static void folderview_drag_received_cb(GtkWidget        *widget,
                        return;
                }
                for (tmp = list; tmp != NULL; tmp = tmp->next) {
-                       MsgFileInfo *info = g_new0(MsgFileInfo, 1);
-                       info->msginfo = NULL;
-                       info->file = (gchar *)tmp->data;
-                       msglist = g_slist_prepend(msglist, info);
+                       MsgFileInfo *info = NULL;
+                       
+                       if (file_is_email((gchar *)tmp->data)) {
+                               info = g_new0(MsgFileInfo, 1);
+                               info->msginfo = NULL;
+                               info->file = (gchar *)tmp->data;
+                               msglist = g_slist_prepend(msglist, info);
+                       }
                }
                if (msglist) {
                        msglist = g_slist_reverse(msglist);