sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 45a7b3df5f5a64ab0e628525b899001b3364e662
parent 298f2778fbbbe1f59c1b9c8e3993f00b41c7b972
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date:   Fri,  8 Jun 2007 23:16:01 +0000

allow empty alternates hash for an account

git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@442 5c8cc53c-5e98-4d25-b20a-d8db53a31250

Diffstat:
M lib/sup/account.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/account.rb b/lib/sup/account.rb
@@ -36,7 +36,7 @@ class AccountManager
     a = Account.new hash
     @accounts[a] = true
     @email_map[email] = a
-    hash[:alternates].each { |aa| @alternate_map[aa] = a }
+    hash[:alternates].each { |aa| @alternate_map[aa] = a } if hash[:alternates]
     if default
       raise ArgumentError, "multiple default accounts" if @default_account
       @default_account = a