summaryrefslogtreecommitdiff
path: root/alot/commands/globals.py
diff options
context:
space:
mode:
authorvrs <none>2018-12-08 23:21:20 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2018-12-10 10:25:49 +0000
commit4180da12e3d4244557484eaa271baf604b0baa4e (patch)
treef4439d41aaa2a8924a669b43fb5db4ba17a1d0b0 /alot/commands/globals.py
parentf7c5b841568886be64695a14f341c4c7c58b3fba (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/globals.py')
-rw-r--r--alot/commands/globals.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py
index 8c91ffe5..a3435742 100644
--- a/alot/commands/globals.py
+++ b/alot/commands/globals.py
@@ -860,9 +860,10 @@ class ComposeCommand(Command):
# try to find the account again
if account is None:
try:
- account = settings.get_account_by_address(fromaddress)
+ account = settings.account_matching_address(fromaddress)
except NoMatchingAccount:
- msg = 'Cannot compose mail - no account found for `%s`' % fromaddress
+ msg = 'Cannot compose mail - ' \
+ 'no account found for `%s`' % fromaddress
logging.error(msg)
ui.notify(msg, priority='error')
raise CommandCanceled()