Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
Subject: [sup-talk] [PATCH] Fix a bug when forwarding and using crypto.
Date: Wed, 23 Apr 2008 11:04:48 +0200	[thread overview]
Message-ID: <1208941472-sup-2742@port-ext16.ensta.fr> (raw)
In-Reply-To: <1207324905-7455-1-git-send-email-nicolas.pouillard@gmail.com>

What about this patch?

Excerpts from Nicolas Pouillard's message of Fri Apr 04 18:01:45 +0200 2008:
> ---
>  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

-- 
Nicolas Pouillard aka Ertai
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080423/01052d0f/attachment.bin 


  parent reply	other threads:[~2008-04-23  9:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]
2008-04-27  6:47 William Morgan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1208941472-sup-2742@port-ext16.ensta.fr \
    --to=nicolas.pouillard@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox