talons

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

commit 371bbb58ad220a65c15674904d7d7b58cc3e99c2
parent 673374af23c66814593e031990662808773aab40
Author: Paul <paul@claws-mail.org>
Date:   Wed, 31 Aug 2016 12:37:03 +0100

use file name for WebCal subscription folder name

also remove the string length limit, which broke saving folder
properties

Diffstat:
Msrc/plugins/vcalendar/vcal_folder.c | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git 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) {