From: Sascha Silbe <sup-bugs@masanjin.net>
To: sup-devel@rubyforge.org
Subject: [sup-devel] [issue116] TypeError when trying to send a PGP signed email with attachments
Date: Mon, 16 Aug 2010 21:33:45 +0000 [thread overview]
Message-ID: <1281994425.75.0.0617788105661.issue116@masanjin.net> (raw)
In-Reply-To: <1281994425.75.0.0617788105661.issue116@masanjin.net>
New submission from Sascha Silbe <sascha-web-masanjin.net-sup-bugs@silbe.org>:
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-bugs@masanjin.net>
<http://masanjin.net/sup-bugs/issue116>
_________________________________________
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
parent reply other threads:[~2010-08-16 21:38 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <1281994425.75.0.0617788105661.issue116@masanjin.net>]
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=1281994425.75.0.0617788105661.issue116@masanjin.net \
--to=sup-bugs@masanjin.net \
--cc=sup-devel@rubyforge.org \
/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