[sup-talk] Bug: Messages using inline GPG are not decrypted

Michael Stapelberg michael+sup at stapelberg.de
Fri Sep 25 15:10:11 EDT 2009


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


More information about the sup-talk mailing list