diff -Nur evolution-2.30.0/composer/e-msg-composer.c evolution-2.30.0/composer/e-msg-composer.c
--- evolution-2.30.0/composer/e-msg-composer.c	2010-03-17 12:14:53.000000000 +0100
+++ evolution-2.30.0/composer/e-msg-composer.c	2010-04-19 01:34:06.000000000 +0200
@@ -916,7 +916,8 @@
 					CAMEL_GPG_CONTEXT (cipher),
 					account->pgp_always_trust);
 			camel_cipher_sign (
-				cipher, pgp_userid, CAMEL_CIPHER_HASH_SHA1,
+				cipher, pgp_userid,
+				gpg_ctx_get_default_digest(cipher, pgp_userid, &ex),
 				part, npart, &ex);
 			camel_object_unref (cipher);
 
diff -Nur evolution-2.30.0/composer/e-msg-composer.h evolution-2.30.0/composer/e-msg-composer.h
--- evolution-2.30.0/composer/e-msg-composer.h	2010-01-20 10:14:22.000000000 +0100
+++ evolution-2.30.0/composer/e-msg-composer.h	2010-04-18 10:41:20.000000000 +0200
@@ -27,6 +27,7 @@
 #include <camel/camel-internet-address.h>
 #include <camel/camel-mime-message.h>
 #include <camel/camel-session.h>
+#include <camel/camel-gpg-context.h>
 #include <libedataserver/e-account.h>
 #include <libebook/e-destination.h>
 #include <gtkhtml-editor.h>
