change crypted message tests to reask passphrase if necessary
authorColin Leroy <colin@colino.net>
Fri, 17 Jan 2003 08:29:03 +0000 (08:29 +0000)
committerColin Leroy <colin@colino.net>
Fri, 17 Jan 2003 08:29:03 +0000 (08:29 +0000)
fixes bug #5

ChangeLog.claws
configure.ac
src/procmsg.c

index 21d00fa..bb485f8 100644 (file)
@@ -1,3 +1,10 @@
+2003-01-16 [colin]     0.8.8claws107
+
+       * src/procmsg.c
+               Changed encryption test to re-ask passphrase
+               if an encrypted message hasn't been decrypted
+               Fixes bug #5
+
 2003-01-16 [christoph] 0.8.8claws106
 
        * src/prefs_gtk.c
index e1746cd..8a32fe9 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=8
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws106
+EXTRA_VERSION=claws107
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 7dabf8d..50278cf 100644 (file)
@@ -810,8 +810,7 @@ FILE *procmsg_open_message_decrypted(MsgInfo *msginfo, MimeInfo **mimeinfo)
        }
 
        if (MSG_IS_ENCRYPTED(msginfo->flags) &&
-           !msginfo->plaintext_file &&
-           !msginfo->decryption_failed) {
+           (!msginfo->plaintext_file || msginfo->decryption_failed)) {
                rfc2015_decrypt_message(msginfo, mimeinfo_, fp);
                if (msginfo->plaintext_file &&
                    !msginfo->decryption_failed) {