Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: michael+sup@stapelberg.de (Michael Stapelberg)
Subject: [sup-talk] Bug: Messages using inline GPG are not decrypted
Date: Fri, 25 Sep 2009 21:10:11 +0200	[thread overview]
Message-ID: <1253905743-sup-419@midna.zekjur.net> (raw)
In-Reply-To: <1253640093-sup-48@midna.zekjur.net>

Hi,

after fixing the other bug related to GPG messages, this patch has to be
modified, too:

--- a/lib/sup/message.rb
+++ b/lib/sup/message.rb
@@ -436,6 +436,16 @@ private
       end
 
       chunks
+    elsif m.header.content_type == "application/pgp"
+     notice, sig, decryptedm = CryptoManager.decrypt m.body
+     if decryptedm # managed to decrypt
+       children = message_to_chunks(decryptedm, true)
+       chunks = [notice, sig, children].flatten.compact
+     else
+       chunks = [notice]
+     end
+
+     chunks
     elsif m.header.content_type == "message/rfc822"
       if m.body
         payload = RMail::Parser.read(m.body)

Best regards,
Michael


  reply	other threads:[~2009-09-25 19:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-22 17:05 Michael Stapelberg
2009-09-22 17:24 ` Michael Stapelberg
2009-09-25 19:10   ` Michael Stapelberg [this message]
2009-09-26 18:09     ` William Morgan
2009-09-26 20:28       ` Michael Stapelberg
2009-09-26 21:37         ` Ben Walton
2009-09-26 21:41         ` Michael Stapelberg
2009-09-27  1:40           ` 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=1253905743-sup-419@midna.zekjur.net \
    --to=michael+sup@stapelberg.de \
    /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