unless the message has no signature, pub key or encryption.
sig_success = False
pubkey_success = False
+ decrypt_failure = False
sig_failure = False
sigkey_missing = False
have_reply_key = False
"""
if piece.gpg_data == None or piece.gpg_data.plainobj == None:
+ replyinfo_obj.decrypt_failure = True
return
replyinfo_obj.decrypt_success = True
reply_plain += "\n\n"
- else:
+ elif replyinfo_obj.decrypt_failure == True:
debug('decrypt failure')
reply_plain += replyinfo_obj.replies['failed_decrypt']
reply_plain += "\n\n"
reply_plain += "\n\n"
+ if (reply_plain == ""):
+ debug('plaintext message')
+ reply_plain += replyinfo_obj.replies['failed_decrypt']
+ reply_plain += "\n\n"
+
+
reply_plain += replyinfo_obj.replies['signature']
reply_plain += "\n\n"
-I'm sorry, I was not able to decrypt your message. Are you sure you encrypted it with my public key?
-
Your signature could not be verified.
- Edward, the friendly GnuPG bot
-I'm sorry, I was not able to decrypt your message. Are you sure you encrypted it with my public key?
-
Your signature could not be verified.
I'm sorry, I was not able to find your public key. Did you remember to attach it?
-I'm sorry, I was not able to decrypt your message. Are you sure you encrypted it with my public key?
-
Your signature could not be verified.
- Edward, the friendly GnuPG bot
-あなたからのメッセージを解読できなくて、すみません。そちらでは暗号化のとき、私の公開鍵を使ってくださったでしょうか?
-
あなたの署名を認証できませんでした。
- GnuPGボットのEdward
-I'm sorry, I was not able to decrypt your message. Are you sure you encrypted it with my public key?
-
Your signature was verified.
- Edward, the friendly GnuPG bot
-I'm sorry, I was not able to decrypt your message. Are you sure you encrypted it with my public key?
-
Your signature was verified.
- Edward, the friendly GnuPG bot
-I'm sorry, I was not able to decrypt your message. Are you sure you encrypted it with my public key?
-
Your signature was verified.
- Edward, the friendly GnuPG bot