Handle config_version update separately for accounts.
authorAndrej Kacian <ticho@claws-mail.org>
Sun, 6 Aug 2017 16:43:43 +0000 (18:43 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Thu, 14 Sep 2017 16:49:41 +0000 (18:49 +0200)
commitc3167bf1a4bf76a75813856d48e9d3c00f6c3849
tree3db750472785362b5b9b0e40480e61b659059e31
parentb088e814322445b334ba74c1e872f9a29146b7e1
Handle config_version update separately for accounts.

Instead of loading entire configuration from all the
files in rcdir and doing an update at the end, we
now upgrade each "part" right after we load it.

This is to allow greater flexibility during the time
not all of the configuration is loaded yet, e.g. folders
using correct folderclass functions, based on protocol
of account owning a particular folder.

This is currently affecting clawsrc and accountrc, but
it will be trivial to extend it to other rcdir files
as needed.
src/account.c
src/main.c
src/prefs_account.c
src/prefs_account.h
src/prefs_common.c
src/prefs_gtk.c
src/prefs_migration.c
src/prefs_migration.h