[sup-talk] [PATCH] Fix a bug when forwarding and using crypto.
Nicolas Pouillard
nicolas.pouillard at gmail.com
Sat Apr 5 06:39:29 EDT 2008
Excerpts from William Morgan's message of Fri Apr 04 19:44:53 +0200 2008:
> Reformatted excerpts from nicolas.pouillard's message of 2008-04-04:
> > - 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 }
>
> What was the bug?
When some of these @header[...] are not present I get a nil and then get an
error when using '+' on them.
--
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/20080405/863f13ca/attachment.bin
More information about the sup-talk
mailing list