From cd049ac737157392956dc5c4c097f513a08f5635 Mon Sep 17 00:00:00 2001 From: Patrick Totzke Date: Tue, 18 Sep 2012 21:53:24 +0100 Subject: directly use "realname
" in AccountCompleter instead of only completing addresses and afterwards looking up a matching account --- alot/commands/globals.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'alot/commands') 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: -- cgit v1.2.3