2004-11-06 [colin] 0.9.12cvs140.1
[claws.git] / src / compose.c
index 56a033f8e1420c996392df4ea4a806782ce5d145..ce7674002020eb53ef02e4fcfb24a6ddb55f9591 100644 (file)
@@ -3621,8 +3621,9 @@ static gint compose_write_to_file(Compose *compose, FILE *fp, gint action)
        } else
                g_node_append(mimemsg->node, mimetext->node);
 
-       /* sign message */
-       if (compose->use_signing && privacy_system_can_sign(compose->privacy_system))
+       /* sign message if sending */
+       if (action == COMPOSE_WRITE_FOR_SEND && compose->use_signing && 
+           privacy_system_can_sign(compose->privacy_system))
                if (!privacy_sign(compose->privacy_system, mimemsg))
                        return -1;