summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2016-12-12 16:06:27 -0800
committerDylan Baker <dylan@pnwbakers.com>2016-12-13 12:34:15 -0800
commit42504da6791fb12527c708759715b7a79d5a1ddb (patch)
treec0771705d6412d790ed004779fb3306fc5851476 /alot
parent16b3dd216eeafccc6c8d025f13d2e3be50695ba2 (diff)
settings/manager.py: Compare addresses using == instead of in
I don't think this was correct from the start, since "foo@bar.com" would match "bfoo@bar.com", even if there was a "bfoo@bar.com" in the accountmap, depending on the order that they happened to be sorted in accountmap.
Diffstat (limited to 'alot')
-rw-r--r--alot/settings/manager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/settings/manager.py b/alot/settings/manager.py
index 839929b6..4083825a 100644
--- a/alot/settings/manager.py
+++ b/alot/settings/manager.py
@@ -403,7 +403,7 @@ class SettingsManager(object):
"""
for myad in self.get_addresses():
- if myad in address:
+ if myad == address:
return self._accountmap[myad]
return None