diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2016-12-16 14:05:36 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2016-12-16 14:31:23 +0000 |
commit | 9c2bdc83be9992402b0fafe315cb10eaaeb21fbf (patch) | |
tree | 8cc50430865d89bd28c567656551a10c9893411a /alot | |
parent | ac5e05a515aa6a3b27ed23ce89840b15b900ce33 (diff) |
fix interpolation in config files #902.
Configobj's string interpolation feature does not work as expected in
account sections of alot configuration files.
The reason is that interpolation is done in ConfigObj.__getitem__
which alot does not use directly for account sections.
This patch causes all values to be read via ConfigObj.__getitem__
explicitly.
Diffstat (limited to 'alot')
-rw-r--r-- | alot/settings/manager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/settings/manager.py b/alot/settings/manager.py index 9fa396a4..cf494a94 100644 --- a/alot/settings/manager.py +++ b/alot/settings/manager.py @@ -119,7 +119,7 @@ class SettingsManager(object): if 'accounts' in config: for acc in config['accounts'].sections: accsec = config['accounts'][acc] - args = dict(config['accounts'][acc]) + args = dict(config['accounts'][acc].items()) # create abook for this account abook = accsec['abook'] |