summaryrefslogtreecommitdiff
path: root/alot/account.py
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2012-01-24 13:02:16 +0000
committerPatrick Totzke <patricktotzke@gmail.com>2012-01-24 13:02:16 +0000
commit7112dc40a702dc5899085ee1ba26d3b34af19735 (patch)
tree2b02424b1271e2b08ac7244d772fa825d1aa5c69 /alot/account.py
parentd9e23e83c76e648edb14a89f266ce759e5823283 (diff)
adjusted default abook_regexp
as discussed in issue #284 closes #284
Diffstat (limited to 'alot/account.py')
-rw-r--r--alot/account.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/alot/account.py b/alot/account.py
index f5584272..8b3607d6 100644
--- a/alot/account.py
+++ b/alot/account.py
@@ -358,12 +358,13 @@ class MatchSdtoutAddressbook(AddressBook):
:type command: str
:param match: regular expression used to match contacts in `commands`
output to stdout. Must define subparts named "email" and
- "name". Defaults to "(?P<email>.+?@.+?)\s+(?P<name>.+)".
+ "name". Defaults to
+ :regexp:`(?P<email>.+?@.+?)\s+(?P<name>.+?)\s*$`.
:type match: str
"""
self.command = command
if not match:
- self.match = "(?P<email>.+?@.+?)\s+(?P<name>.+)"
+ self.match = '(?P<email>.+?@.+?)\s+(?P<name>.+?)\s*$'
else:
self.match = match