diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2016-12-12 16:06:27 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2016-12-13 12:34:15 -0800 |
commit | 42504da6791fb12527c708759715b7a79d5a1ddb (patch) | |
tree | c0771705d6412d790ed004779fb3306fc5851476 /alot | |
parent | 16b3dd216eeafccc6c8d025f13d2e3be50695ba2 (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.py | 2 |
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 |