diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2012-09-18 21:53:24 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2012-09-22 10:30:37 +0100 |
commit | cd049ac737157392956dc5c4c097f513a08f5635 (patch) | |
tree | b525e3537f3802e87fbcaceb521d15f43337e1b0 /alot/commands | |
parent | 37f4e4faaed9643bda6cb5e5000b3455a7a39898 (diff) |
directly use "realname <address>" in AccountCompleter
instead of only completing addresses and afterwards looking up a
matching account
Diffstat (limited to 'alot/commands')
-rw-r--r-- | alot/commands/globals.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py index 3f57faa4..5ff72c7f 100644 --- a/alot/commands/globals.py +++ b/alot/commands/globals.py @@ -668,12 +668,7 @@ class ComposeCommand(Command): if fromaddress is None: ui.notify('canceled') return - a = settings.get_account_by_address(fromaddress) - if a is not None: - fromstring = "%s <%s>" % (a.realname, a.address) - self.envelope.add('From', fromstring) - else: - self.envelope.add('From', fromaddress) + self.envelope.add('From', fromaddress) # add signature if not self.omit_signature: |