Bug 2979

Summary: claws fails to load (empty) folderlist.xml and shows account wizard
Product: Claws Mail (GTK 2) Reporter: kardan
Component: FoldersAssignee: users
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 3.9.3   
Hardware: PC   
OS: Linux   

Description kardan 2013-07-15 05:51:14 UTC
Claws opens with the account creation wizard despite multiple accounts are set.

In case some files are corrupt, please tell the user, what to do.
Comment 1 Paul 2013-07-15 09:12:49 UTC
Please correct this summary, it's useless and does not indicate anything about the behaviour you describe.
Comment 2 kardan 2013-07-15 10:55:51 UTC
WARNING **: xml_parse_next_tag(): Can't parse next tag

The warnings is risen during startup while parsing an empty folderlist.xml
in xml.c:160. 
  mv ~/.claws-mail/folderlist.xml{.bak,}
solves the problem.

OBSERVED BEHAVIOUR
1. start claws mail
2. colole shows: WARNING **: xml_parse_next_tag(): Can't parse next tag
3. the account creation wizard is shown

EXPECTED BEHAVIOUR
1. claws on start finds out, the folderlist.xml (or any other
config file) has been corrupted (or empty as in this case)
2. the warning is caught (or prevented by checking in advance) and shows the
affected file
2. check for a backup file, restore it and load it
4. show the main window as usual, depending on preferencesa
Comment 3 Paul 2013-07-15 11:09:10 UTC
i didn't say i didn't understand what you were reporting, i was just pointing
out that using the text "WARNING **: xml_parse_next_tag(): Can't parse next
tag" in no way helps to identify the bug when looking through the list of bugs.

Please see
http://www.thewildbeast.co.uk/claws-mail/bugzilla/page.cgi?id=bug-writing.html
Comment 4 users 2013-08-27 10:46:04 UTC
Changes related to this bug have been committed.
Please check latest Git and update the bug accordingly.
You can also get the patch from:
http://git.claws-mail.org/

http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=b562b295c97bd2f183d0c67089792cce3be734b0
Author: Paul <paul@claws-mail.org>
Date:   Tue Aug 27 09:45:42 2013 +0100

    fix bug 2979, 'claws fails to load (empty) folderlist.xml and shows account
wizard'
Comment 5 users 2013-08-27 13:33:06 UTC
Changes related to this bug have been committed.
Please check latest Git and update the bug accordingly.
You can also get the patch from:
http://git.claws-mail.org/

http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=bd24c3742d17724a6a54586cc4446a0e2fc34c1a
Merge: b98cc26 76c91d8
Author: Colin Leroy <colin@colino.net>
Date:   Tue Aug 27 13:33:04 2013 +0200

    Merge branch 'master' of file:///home/git/claws

http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=76c91d8cceb7bdcdf8ede508fc1e1b349dcf930a
Author: Paul <paul@claws-mail.org>
Date:   Tue Aug 27 09:45:42 2013 +0100

    fix bug 2979, 'claws fails to load (empty) folderlist.xml and shows account
wizard'

http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=f275669014aa3fc6fc5252996841ed425544e442
Author: Paul <paul@claws-mail.org>
Date:   Wed Aug 21 07:55:37 2013 +0100

    no need to do ifdef HAVE_CONFIG_H twice