diff options
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 |