[Commits] [SCM] claws branch, master, updated. 3.10.1-145-gfa8fd46

ticho at claws-mail.org ticho at claws-mail.org
Wed Aug 13 22:33:12 CEST 2014


The branch, master has been updated
       via  fa8fd46c1f9945fd21ab78e5eaeaf89fa6e9df15 (commit)
      from  06165d299c68c18a4f332a062c77f18277ee47ed (commit)

Summary of changes:
 src/plugins/rssyl/rssyl_cb_menu.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit fa8fd46c1f9945fd21ab78e5eaeaf89fa6e9df15
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Wed Aug 13 22:32:01 2014 +0200

    RSSyl: fix OPML import creating incorrect folder hierarchy

diff --git a/src/plugins/rssyl/rssyl_cb_menu.c b/src/plugins/rssyl/rssyl_cb_menu.c
index d0c2ef9..bb11044 100644
--- a/src/plugins/rssyl/rssyl_cb_menu.c
+++ b/src/plugins/rssyl/rssyl_cb_menu.c
@@ -352,7 +352,10 @@ void rssyl_import_feed_list_cb(GtkAction *action, gpointer data)
 
 	ctx = malloc( sizeof(OPMLImportCtx) );
 	ctx->failures = 0;
-	ctx->depth = rssyl_folder_depth(item);
+	/* This needs to be +2, since we will be comparing it to depth of
+	 * <outline> tag in OPML's XML structure. Topmost outlines are under
+	 * <opml> and <body>, hence 2. */
+	ctx->depth = rssyl_folder_depth(item) + 2;
 	ctx->current = NULL;
 	ctx->current = g_slist_append(ctx->current, item);
 

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list