diff options
author | vrs <none> | 2018-12-08 23:21:20 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2018-12-10 10:25:49 +0000 |
commit | 4180da12e3d4244557484eaa271baf604b0baa4e (patch) | |
tree | f4439d41aaa2a8924a669b43fb5db4ba17a1d0b0 /alot/commands/envelope.py | |
parent | f7c5b841568886be64695a14f341c4c7c58b3fba (diff) |
rename get_account_by_address to account_matching_address
... since accounts' addresses can overlap and get_account_by_address
promises too much. Also remove now-obsolete get_addresses.
Diffstat (limited to 'alot/commands/envelope.py')
-rw-r--r-- | alot/commands/envelope.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py index 2aa15475..737a596f 100644 --- a/alot/commands/envelope.py +++ b/alot/commands/envelope.py @@ -258,8 +258,8 @@ class SendCommand(Command): address = msg.get('Resent-From', False) or msg.get('From', '') logging.debug("FROM: \"%s\"" % address) try: - account = settings.get_account_by_address(address, - return_default=True) + account = settings.account_matching_address(address, + return_default=True) except NoMatchingAccount: ui.notify('no accounts set', priority='error') return @@ -543,7 +543,7 @@ class SignCommand(Command): else: if envelope.account is None: try: - envelope.account = settings.get_account_by_address( + envelope.account = settings.account_matching_address( envelope['From']) except NoMatchingAccount: envelope.sign = False |