Bug 3330

Summary: RSSyl plugin makes Claws-Mail unusable until deactivated
Product: Claws Mail (GTK 2) Reporter: Lars Schotte <gustik>
Component: Plugins/RSSylAssignee: users
Status: RESOLVED WONTFIX    
Severity: major    
Priority: P3    
Version: 3.11.1   
Hardware: PC   
OS: FreeBSD   

Description Lars Schotte 2014-11-14 18:28:09 UTC
When I start claws-mail with RSSyl plugin enabled, this comes on the console and claws-mail stops (looks like an infinite loop):

/home/vanessa/.claws-mail/RSSyl/My Feeds (RSSyl)//Planet Claws Mail: mkdir: File exists
/home/vanessa/.claws-mail/RSSyl/My Feeds (RSSyl)//Fefes Blog: mkdir: File exists
/home/vanessa/.claws-mail/RSSyl/My Feeds (RSSyl)//flassbeck-economics: mkdir: File exists
/home/vanessa/.claws-mail/RSSyl/My Feeds (RSSyl)//Pro-Linux News: mkdir: File exists
/home/vanessa/.claws-mail/RSSyl/My Feeds (RSSyl)//OpenBSD Journal: mkdir: File exists
/home/vanessa/.claws-mail/RSSyl/My Feeds (RSSyl)//OpenBSD Errata: mkdir: File exists
/home/vanessa/.claws-mail/RSSyl/My Feeds (RSSyl)//NetBSD.org News: mkdir: File exists
/home/vanessa/.claws-mail/RSSyl/My Feeds (RSSyl)//NetBSD Code Changes: mkdir: File exists
/home/vanessa/.claws-mail/RSSyl/My Feeds (RSSyl)//NetBSD.org Security Advisories: mkdir: File exists
/home/vanessa/.claws-mail/RSSyl/My Feeds (RSSyl)//NetBSD - Fresh Packages: mkdir: File exists
/home/vanessa/.claws-mail/RSSyl/My Feeds (RSSyl)//FreeBSD News Flash: mkdir: File exists
/home/vanessa/.claws-mail/RSSyl/My Feeds (RSSyl)//FreeBSD Foundation: mkdir: File exists
/home/vanessa/.claws-mail/RSSyl/My Feeds (RSSyl)//NetBSD Blog: mkdir: File exists
/home/vanessa/.claws-mail/RSSyl/My Feeds (RSSyl)//FreeBSD VuXML: mkdir: File exists
/home/vanessa/.claws-mail/RSSyl/My Feeds (RSSyl)//DragonFly BSD Digest: mkdir: File exists
/home/vanessa/.claws-mail/RSSyl/My Feeds (RSSyl)//Planet Claws Mail: mkdir: File exists
/home/vanessa/.claws-mail/RSSyl/My Feeds (RSSyl)//Fefes Blog: mkdir: File exists
/home/vanessa/.claws-mail/RSSyl/My Feeds (RSSyl)//flassbeck-economics: mkdir: File exists
/home/vanessa/.claws-mail/RSSyl/My Feeds (RSSyl)//Pro-Linux News: mkdir: File exists
/home/vanessa/.claws-mail/RSSyl/My Feeds (RSSyl)//OpenBSD Journal: mkdir: File exists
/home/vanessa/.claws-mail/RSSyl/My Feeds (RSSyl)//OpenBSD Errata: mkdir: File exists
/home/vanessa/.claws-mail/RSSyl/My Feeds (RSSyl)//NetBSD.org News: mkdir: File exists
/home/vanessa/.claws-mail/RSSyl/My Feeds (RSSyl)//NetBSD Code Changes: mkdir: File exists
/home/vanessa/.claws-mail/RSSyl/My Feeds (RSSyl)//NetBSD.org Security Advisories: mkdir: File exists
/home/vanessa/.claws-mail/RSSyl/My Feeds (RSSyl)//NetBSD - Fresh Packages: mkdir: File exists
/home/vanessa/.claws-mail/RSSyl/My Feeds (RSSyl)//FreeBSD News Flash: mkdir: File exists
/home/vanessa/.claws-mail/RSSyl/My Feeds (RSSyl)//FreeBSD Foundation: mkdir: File exists
/home/vanessa/.claws-mail/RSSyl/My Feeds (RSSyl)//NetBSD Blog: mkdir: File exists
/home/vanessa/.claws-mail/RSSyl/My Feeds (RSSyl)//FreeBSD VuXML: mkdir: File exists
/home/vanessa/.claws-mail/RSSyl/My Feeds (RSSyl)//DragonFly BSD Digest: mkdir: File exists
Comment 1 Lars Schotte 2014-11-14 18:30:03 UTC
btw. claws-mail throws after that a core dump, but I did not upload it, because it is 70MB big and looks like it contains credentials, it matches grep password.
Comment 2 Andrej Kacian 2014-11-14 22:16:42 UTC
I'm afraid the migration to new storage format did not go as planned there.

Can you please try starting claws-mail with --debug from console, and paste the output (or attach as file if too long)?
Comment 3 Lars Schotte 2014-11-14 22:53:25 UTC
plugin.c:451:trying to load `/usr/local/lib/claws-mail/plugins/rssyl.so'
plugin.c:370:plugin licence check passed: GPL2+ found
folder.c:123:registering folder class rssyl
rssyl.c:241:RSSyl: new_folder:  ()
prefs_gtk.c:86:Reading configuration...
prefs_gtk.c:148:Finished reading configuration.
prefs_gtk.c:86:Reading configuration...
prefs_gtk.c:148:Finished reading configuration.
prefs_gtk.c:86:Reading configuration...
prefs_gtk.c:148:Finished reading configuration.
prefs_gtk.c:86:Reading configuration...
prefs_gtk.c:148:Finished reading configuration.
prefs_gtk.c:86:Reading configuration...
prefs_gtk.c:148:Finished reading configuration.
prefs_gtk.c:86:Reading configuration...
prefs_gtk.c:148:Finished reading configuration.
prefs_gtk.c:86:Reading configuration...
prefs_gtk.c:148:Finished reading configuration.
prefs_gtk.c:86:Reading configuration...
prefs_gtk.c:148:Finished reading configuration.
prefs_gtk.c:86:Reading configuration...
prefs_gtk.c:148:Finished reading configuration.
prefs_gtk.c:86:Reading configuration...
prefs_gtk.c:148:Finished reading configuration.
prefs_gtk.c:86:Reading configuration...
prefs_gtk.c:148:Finished reading configuration.
prefs_gtk.c:86:Reading configuration...
prefs_gtk.c:148:Finished reading configuration.
prefs_gtk.c:86:Reading configuration...
....
prefs_gtk.c:86:Reading configuration...
prefs_gtk.c:123:Found [#rssyl/My Feeds//DragonFly BSD Digest]
prefs_gtk.c:148:Finished reading configuration.
folderview.c:758:called inc_lock (lock count 2)
folderview.c:759:Setting folder info...
msgcache.c:275:TIMING : 0s000ms
msgcache.c:275:TIMING : 0s000ms
folderview.c:785:called inc_unlock (lock count 1)
rssyl.c:241:RSSyl: new_folder:  ()
folderview.c:758:called inc_lock (lock count 2)
folderview.c:759:Setting folder info...
msgcache.c:275:TIMING : 0s000ms
msgcache.c:275:TIMING : 0s000ms
folderview.c:785:called inc_unlock (lock count 1)
rssyl.c:241:RSSyl: new_folder:  ()
folderview.c:758:called inc_lock (lock count 2)
folderview.c:759:Setting folder info...
msgcache.c:275:TIMING : 0s000ms
msgcache.c:275:TIMING : 0s000ms
folderview.c:785:called inc_unlock (lock count 1)
rssyl.c:241:RSSyl: new_folder:  ()
folderview.c:758:called inc_lock (lock count 2)
folderview.c:759:Setting folder info...
msgcache.c:275:TIMING : 0s000ms
msgcache.c:275:TIMING : 0s000ms
folderview.c:785:called inc_unlock (lock count 1)
rssyl.c:241:RSSyl: new_folder:  ()
folderview.c:758:called inc_lock (lock count 2)
folderview.c:759:Setting folder info...
msgcache.c:275:TIMING : 0s000ms
msgcache.c:275:TIMING : 0s000ms
folderview.c:785:called inc_unlock (lock count 1)
rssyl.c:241:RSSyl: new_folder:  ()
folderview.c:758:called inc_lock (lock count 2)
folderview.c:759:Setting folder info...
msgcache.c:275:TIMING : 0s000ms
msgcache.c:275:TIMING : 0s000ms
folderview.c:785:called inc_unlock (lock count 1)
rssyl.c:241:RSSyl: new_folder:  ()
folderview.c:758:called inc_lock (lock count 2)
folderview.c:759:Setting folder info...
msgcache.c:275:TIMING : 0s000ms
msgcache.c:275:TIMING : 0s000ms
folderview.c:785:called inc_unlock (lock count 1)
rssyl.c:241:RSSyl: new_folder:  ()
...
folderview.c:785:called inc_unlock (lock count 1)
rssyl_update_format.c:85:RSSyl: (FORMAT) item 'My Feeds'
rssyl_update_format.c:93:RSSyl: (FORMAT) adding new root folder 'My Feeds'
rssyl.c:241:RSSyl: new_folder: My Feeds ((null))
folderview.c:758:called inc_lock (lock count 2)
folderview.c:759:Setting folder info...
msgcache.c:275:TIMING : 0s000ms
msgcache.c:275:TIMING : 0s000ms
folderview.c:785:called inc_unlock (lock count 1)
rssyl_update_format.c:85:RSSyl: (FORMAT) item 'My Feeds'
rssyl_update_format.c:93:RSSyl: (FORMAT) adding new root folder 'My Feeds'
rssyl.c:241:RSSyl: new_folder: My Feeds ((null))
folderview.c:758:called inc_lock (lock count 2)
folderview.c:759:Setting folder info...
msgcache.c:275:TIMING : 0s000ms
msgcache.c:275:TIMING : 0s000ms
folderview.c:785:called inc_unlock (lock count 1)
rssyl_update_format.c:85:RSSyl: (FORMAT) item 'My Feeds'
rssyl_update_format.c:93:RSSyl: (FORMAT) adding new root folder 'My Feeds'
rssyl.c:241:RSSyl: new_folder: My Feeds ((null))
folderview.c:758:called inc_lock (lock count 2)
folderview.c:759:Setting folder info...
msgcache.c:275:TIMING : 0s000ms
msgcache.c:275:TIMING : 0s000ms
Comment 4 Andrej Kacian 2014-11-14 23:09:54 UTC
Hm, I have no idea why, but it seems like it's stuck in endless loop even during the storage format conversion. I have to admit I did not test the process on FreeBSD, maybe there is something specific that causes it to break. Sorry about that.

If you still have ~/.claws-mail/RSSyl/rssyl-feedlist.opml file that is not empty and contains meaningful data (your feed folder structure), I believe you can get through this by simply recreating the structure in new RSSyl:

1. Back rssyl-feedlist.opml somewhere
2. Move away or delete entire ~/.claws-mail/RSSyl directory
3. Start Claws Mail and load the RSSyl plugin. The "My Feeds (RSSyl)" folder tree should be there, but should be empty. Remove it via right-click menu.
4. Add a new RSSyl folder tree (menu File->Add mailbox...)
5. Import the .opml file to the new folder tree (via right-click menu).
Comment 5 Lars Schotte 2014-11-14 23:38:36 UTC
Does not help at all. Even with no RSSyl directory whatsoever, he still has that information about the files backed up somewhere, I am supposing that it may be the cache.
Comment 6 Lars Schotte 2014-11-14 23:53:59 UTC
OK, removing folderlist.xml folderitemrc fixed that, but that is like configuring that claws-mail from scratch now. So I do not think it was such a good idea to hardcode that folder lists into every configuration file around.
Comment 7 Lars Schotte 2014-11-15 00:41:12 UTC
Best way is to remove .claws-mail completely and start over, because there are just too many issues with bringing back broken configuration files.