diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2015-05-01 15:11:15 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2015-05-01 15:11:15 +0100 |
commit | 3988f5f74b154d47755da206bb0659b957e495fa (patch) | |
tree | 37ebe6f0001c4bc64a7cfdf7b314f65ab611bf93 /alot/settings/manager.py | |
parent | 7b1aee9f1625fafa6cf899239a1207a51b825682 (diff) | |
parent | dbfaa680ce89ae18642e6ce3c76b39157db3a246 (diff) |
Merge branch '0.3.6-feature-abooks'
Diffstat (limited to 'alot/settings/manager.py')
-rw-r--r-- | alot/settings/manager.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/alot/settings/manager.py b/alot/settings/manager.py index 66c8e355..9dfe52b0 100644 --- a/alot/settings/manager.py +++ b/alot/settings/manager.py @@ -9,7 +9,8 @@ import logging from configobj import ConfigObj, Section from alot.account import SendmailAccount -from alot.addressbooks import MatchSdtoutAddressbook, AbookAddressBook +from alot.addressbook.abook import AbookAddressBook +from alot.addressbook.external import ExternalAddressbook from alot.helper import pretty_datetime, string_decode from errors import ConfigError @@ -127,8 +128,10 @@ class SettingsManager(object): cmd = abook['command'] regexp = abook['regexp'] if cmd is not None and regexp is not None: - args['abook'] = MatchSdtoutAddressbook(cmd, - match=regexp) + ef = abook['shellcommand_external_filtering'] + args['abook'] = ExternalAddressbook(cmd, + regexp, + external_filtering=ef) else: msg = 'underspecified abook of type \'shellcommand\':' msg += '\ncommand: %s\nregexp:%s' % (cmd, regexp) |