Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] [PATCH] Fix a bug when forwarding and using crypto.
@ 2008-04-27  6:47 William Morgan
  0 siblings, 0 replies; 5+ messages in thread
From: William Morgan @ 2008-04-27  6:47 UTC (permalink / raw)


Reformatted excerpts from nicolas.pouillard's message of 2008-04-23:
> What about this patch?

Applied directly to master. Thanks!

-- 
William <wmorgan-sup at masanjin.net>


^ permalink raw reply	[flat|nested] 5+ messages in thread
* [sup-talk] [PATCH] Fix a bug when forwarding and using crypto.
@ 2008-04-04 16:01 Nicolas Pouillard
  2008-04-04 17:44 ` William Morgan
  2008-04-23  9:04 ` Nicolas Pouillard
  0 siblings, 2 replies; 5+ messages in thread
From: Nicolas Pouillard @ 2008-04-04 16:01 UTC (permalink / raw)


---
 lib/sup/modes/edit-message-mode.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/sup/modes/edit-message-mode.rb b/lib/sup/modes/edit-message-mode.rb
index 3aad623..dd96002 100644
--- a/lib/sup/modes/edit-message-mode.rb
+++ b/lib/sup/modes/edit-message-mode.rb
@@ -324,7 +324,7 @@ protected
     ## do whatever crypto transformation is necessary
     if @crypto_selector && @crypto_selector.val != :none
       from_email = PersonManager.person_for(@header["From"]).email
-      to_email = (@header["To"] + @header["Cc"] + @header["Bcc"]).map { |p| PersonManager.person_for(p).email }
+      to_email = [@header["To"], @header["Cc"], @header["Bcc"]].flatten.compact.map { |p| PersonManager.person_for(p).email }
 
       m = CryptoManager.send @crypto_selector.val, from_email, to_email, m
     end
-- 
1.5.5.rc3



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-04-27  6:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-27  6:47 [sup-talk] [PATCH] Fix a bug when forwarding and using crypto William Morgan
  -- strict thread matches above, loose matches on Subject: below --
2008-04-04 16:01 Nicolas Pouillard
2008-04-04 17:44 ` William Morgan
2008-04-05 10:39   ` Nicolas Pouillard
2008-04-23  9:04 ` Nicolas Pouillard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox