From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.204.66.147 with SMTP id n19cs116296bki; Mon, 16 Aug 2010 14:38:12 -0700 (PDT) Received: by 10.224.78.40 with SMTP id i40mr3666408qak.340.1281994691660; Mon, 16 Aug 2010 14:38:11 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id g30si11529936qcq.182.2010.08.16.14.38.11; Mon, 16 Aug 2010 14:38:11 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 09EC719783D9; Mon, 16 Aug 2010 17:38:11 -0400 (EDT) Received: from entry.masanjin.net (masanjin.net [209.20.72.13]) by rubyforge.org (Postfix) with ESMTP id AB0F81858386 for ; Mon, 16 Aug 2010 17:33:48 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=entry.masanjin.net) by entry.masanjin.net with esmtp (Exim 4.69) (envelope-from ) id 1Ol7JS-0002Qd-5Q for sup-devel@rubyforge.org; Mon, 16 Aug 2010 17:33:48 -0400 MIME-Version: 1.0 To: sup-devel@rubyforge.org From: Sascha Silbe Date: Mon, 16 Aug 2010 21:33:45 +0000 Precedence: bulk X-Roundup-Name: Sup issue tracker X-Roundup-Loop: hello X-Roundup-Version: 1.4.10 Message-Id: <1281994425.75.0.0617788105661.issue116@masanjin.net> X-Roundup-issue-status: unread X-Roundup-issue-keyword: encoding, crypto X-Roundup-issue-priority: bug In-Reply-To: <1281994425.75.0.0617788105661.issue116@masanjin.net> Subject: [sup-devel] [issue116] TypeError when trying to send a PGP signed email with attachments X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Reply-To: Sup issue tracker , Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org New submission from Sascha Silbe : When trying to send an email that is going to get PGP signed and has two attachments (haven't tried with just one), the following exception occurs: --- TypeError from thread: main can't convert Array into String ./lib/sup/modes/edit-message-mode.rb:407:in `pack' ./lib/sup/modes/edit-message-mode.rb:407:in `build_message' ./lib/sup/modes/edit-message-mode.rb:355:in `send_message' ./lib/sup/mode.rb:59:in `send' ./lib/sup/mode.rb:59:in `handle_input' ./lib/sup/buffer.rb:277:in `handle_input' bin/sup:260 The code in question is: 402) ## do whatever crypto transformation is necessary 403) if @crypto_selector && @crypto_selector.val != :none 404) from_email = Person.from_address(@header["From"]).email 405) to_email = [@header["To"], @header["Cc"], @header["Bcc"]].flatten.compact.map { |p| Person.from_addres 406) m.header["Content-Transfer-Encoding"] = 'base64' 407) m.body = [m.body].pack('m') 408) 409) m = CryptoManager.send @crypto_selector.val, from_email, to_email, m 410) end This is with local changes (so the line numbers won't match), but I've checked this particular piece of code is the same on mainline/master. ---------- keyword: crypto, encoding messages: 269 nosy: sascha_silbe priority: bug ruby_version: 1.8 status: unread sup_version: git commit 9be79c3 title: TypeError when trying to send a PGP signed email with attachments _________________________________________ Sup issue tracker _________________________________________ _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel