Index: camel/camel-gpg-context.c
===================================================================
--- camel/camel-gpg-context.c	(revision 9821)
+++ camel/camel-gpg-context.c	(working copy)
@@ -897,6 +897,16 @@ gpg_ctx_parse_status (struct _GpgCtx *gp
 				/* FIXME: save this state? */
 			}
 			break;
+		case GPG_CTX_MODE_DECRYPT:
+			if (!strncmp ((char *) status, "BEGIN_DECRYPTION", 16)) {
+				/* nothing to do... but we know to expect data on stdout soon */
+				break;
+			} else if (!strncmp ((char *) status, "END_DECRYPTION", 14)) {
+				/* nothing to do, but we know the end is near? */
+				break;
+			}
+			/* let if fall through to verify possible signatures too */
+			/* break; */
 		case GPG_CTX_MODE_VERIFY:
 			if (!strncmp ((char *) status, "TRUST_", 6)) {
 				status += 6;
@@ -938,13 +948,6 @@ gpg_ctx_parse_status (struct _GpgCtx *gp
 				return -1;
 			}
 			break;
-		case GPG_CTX_MODE_DECRYPT:
-			if (!strncmp ((char *) status, "BEGIN_DECRYPTION", 16)) {
-				/* nothing to do... but we know to expect data on stdout soon */
-			} else if (!strncmp ((char *) status, "END_DECRYPTION", 14)) {
-				/* nothing to do, but we know the end is near? */
-			}
-			break;
 		case GPG_CTX_MODE_IMPORT:
 			/* noop */
 			break;
Index: camel/ChangeLog
===================================================================
--- camel/ChangeLog	(revision 9821)
+++ camel/ChangeLog	(working copy)
@@ -1,3 +1,10 @@
+2008-12-10  Milan Crha  <mcrha@redhat.com>
+
+	** Fix for bug #266147
+
+	* camel-gpg-context.c: (gpg_ctx_parse_status):
+	Verify signature of the encrypted text, if any.
+
 2008-12-09  Milan Crha  <mcrha@redhat.com>
 
 	** Part of fix for bug #552986
