RSSyl: Remove unnecessary use of link() in rssyl_add_msgs().
authorAndrej Kacian <ticho@claws-mail.org>
Sat, 30 May 2015 16:31:26 +0000 (18:31 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Sat, 30 May 2015 16:31:26 +0000 (18:31 +0200)
src/plugins/rssyl/rssyl.c

index 3b2675a..6e2590a 100644 (file)
@@ -782,12 +782,10 @@ static gint rssyl_add_msgs(Folder *folder, FolderItem *dest, GSList *file_list,
                g_return_val_if_fail(destfile != NULL, -1);
                debug_print("RSSyl: add_msgs: new filename is '%s'\n", destfile);
 
-               if( link(fileinfo->file, destfile) < 0 ) {
-                       if( copy_file(fileinfo->file, destfile, TRUE) < 0 ) {
-                               g_warning("can't copy message %s to %s\n", fileinfo->file, destfile);
-                               g_free(destfile);
-                               return -1;
-                       }
+               if( copy_file(fileinfo->file, destfile, TRUE) < 0 ) {
+                       g_warning("can't copy message %s to %s\n", fileinfo->file, destfile);
+                       g_free(destfile);
+                       return -1;
                }
 
                if( relation != NULL )