summaryrefslogtreecommitdiff
path: root/alot/addressbook
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2015-04-15 11:17:41 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2015-04-15 13:08:52 +0100
commitdbfaa680ce89ae18642e6ce3c76b39157db3a246 (patch)
tree37ebe6f0001c4bc64a7cfdf7b314f65ab611bf93 /alot/addressbook
parentef4789f5c03bf87038911caf165989ece4a42172 (diff)
fix: dont overwrite default re-flag 0 with None
issue #764
Diffstat (limited to 'alot/addressbook')
-rw-r--r--alot/addressbook/external.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/alot/addressbook/external.py b/alot/addressbook/external.py
index da9aab59..5c88b291 100644
--- a/alot/addressbook/external.py
+++ b/alot/addressbook/external.py
@@ -11,7 +11,7 @@ from . import AddressBook, AddressbookError
class ExternalAddressbook(AddressBook):
""":class:`AddressBook` that parses a shell command's output"""
- def __init__(self, commandline, regex, reflags=None,
+ def __init__(self, commandline, regex, reflags=0,
external_filtering=True,
**kwargs):
"""
@@ -21,7 +21,10 @@ class ExternalAddressbook(AddressBook):
output to stdout. Must define subparts named "email" and
"name".
:type regex: str
- :param reflags: flags to use with regular expression
+ :param reflags: flags to use with regular expression.
+ Use the constants defined in :mod:`re` here
+ (`re.IGNORECASE` etc.)
+ :type reflags: str
:param external_filtering: if True the command is fired
with the given search string as parameter
and the result is not filtered further.