Subject: [sup-devel] [PATCH] Fetch the account found from the to/cc info, don't just use it as-is.

From: Robin Burchell <[email-masked]>
Date: Sat, 10 Jul 2010 19:53:20 +0100

This prevents people's To: info screwing up my replies to them which is
immensely irritating to me.
---
 lib/sup/modes/reply-mode.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/sup/modes/reply-mode.rb b/lib/sup/modes/reply-mode.rb
index bbac922..294bcfa 100644
--- a/lib/sup/modes/reply-mode.rb
+++ b/lib/sup/modes/reply-mode.rb
@@ -76,7 +76,7 @@ EOS
     ## otherwise, try and find an account somewhere in the list of to's
     ## and cc's.
     elsif(b = (@m.to + @m.cc).find { |p| AccountManager.is_account? p })
-      b
+      AccountManager.account_for(b.email)
     ## if all else fails, use the default
     else
       AccountManager.default_account
-- 
1.7.0.4

_______________________________________________
Sup-devel mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-devel