talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit f59759b1ba4e3f02cd87450761da89059d645684
parent 53de074939d1bbf21b4b29897616c2c438dc34f7
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Sun, 19 Oct 2014 03:54:04 +0200

RSSyl: Lose the .deleted file on folder move for now

Diffstat:
Msrc/plugins/rssyl/rssyl.c | 14+++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/src/plugins/rssyl/rssyl.c b/src/plugins/rssyl/rssyl.c @@ -808,7 +808,8 @@ static gboolean rssyl_subscribe_uri(Folder *folder, const gchar *uri) static void rssyl_copy_private_data(Folder *folder, FolderItem *oldi, FolderItem *newi) { - gchar *dpathold, *dpathnew; + gchar *dpathold; +/* gchar *dpathnew;*/ RFolderItem *olditem = (RFolderItem *)oldi, *newitem = (RFolderItem *)newi; @@ -846,11 +847,14 @@ static void rssyl_copy_private_data(Folder *folder, FolderItem *oldi, dpathold = g_strconcat(rssyl_item_get_path(oldi->folder, oldi), G_DIR_SEPARATOR_S, RSSYL_DELETED_FILE, NULL); - dpathnew = g_strconcat(rssyl_item_get_path(newi->folder, newi), - G_DIR_SEPARATOR_S, RSSYL_DELETED_FILE, NULL); - move_file(dpathold, dpathnew, TRUE); + if (is_file_exist(dpathold)) { +/* dpathnew = g_strconcat(rssyl_item_get_path(newi->folder, newi), + G_DIR_SEPARATOR_S, RSSYL_DELETED_FILE, NULL); + move_file(dpathold, dpathnew, TRUE); + g_free(dpathnew);*/ + g_remove(dpathold); + } g_free(dpathold); - g_free(dpathnew); }