[Commits] [SCM] claws branch, master, updated. 3.14.0-49-g371bbb5

claws at claws-mail.org claws at claws-mail.org
Wed Aug 31 13:37:07 CEST 2016


The branch, master has been updated
       via  371bbb58ad220a65c15674904d7d7b58cc3e99c2 (commit)
      from  673374af23c66814593e031990662808773aab40 (commit)

Summary of changes:
 src/plugins/vcalendar/vcal_folder.c |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)


- Log -----------------------------------------------------------------
commit 371bbb58ad220a65c15674904d7d7b58cc3e99c2
Author: Paul <paul at claws-mail.org>
Date:   Wed Aug 31 12:37:03 2016 +0100

    use file name for WebCal subscription folder name
    
    also remove the string length limit, which broke saving folder
    properties

diff --git a/src/plugins/vcalendar/vcal_folder.c b/src/plugins/vcalendar/vcal_folder.c
index 76a0352..e462fe0 100644
--- a/src/plugins/vcalendar/vcal_folder.c
+++ b/src/plugins/vcalendar/vcal_folder.c
@@ -1852,14 +1852,10 @@ static void update_subscription_finish(const gchar *uri, gchar *feed, gboolean v
 		gchar *title = feed_get_title(feed);
 		if (title == NULL) {
 			if (strstr(uri, "://"))
-				title = g_strdup(strstr(uri,"://")+3);
+				title = g_path_get_basename(strstr(uri,"://")+3);
 			else
 				title = g_strdup(uri);
 			subst_for_filename(title);
-			if (strlen(title) > 32) {
-				title[29]=title[30]=title[31]='.';
-				title[32]='\0';
-			}
 		}
 		item = folder_create_folder(root->node->data, title);
 		if (!item) {

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list