]> git.notmuchmail.org Git - sup/commitdiff
bugfix: alternate emails are not used in from line
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Tue, 12 Jun 2007 20:55:22 +0000 (20:55 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Tue, 12 Jun 2007 20:55:22 +0000 (20:55 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@449 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/account.rb

index 411060889b30761ff3343d83f4161ee4ccb11682..c15d5cee3b8517901a3547d9e6170e5106c06698 100644 (file)
@@ -33,7 +33,7 @@ class AccountManager
 
     ([hash[:email]] + (hash[:alternates] || [])).each do |email|
       next if @email_map.member? email
-      a = Account.new email, hash
+      a = Account.new main_email, hash
       PersonManager.register a
       @accounts[a] = true
       @email_map[email] = a