aboutsummaryrefslogtreecommitdiff
path: root/src/mimeview.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-09-27 07:32:26 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-09-27 07:32:26 +0000
commitd3841401b2350e9b4b28f6b943f5cda262076101 (patch)
tree06a0eea2f982a7517f5629b0b4f17e2a55828f84 /src/mimeview.c
parent69592b82abe009675df6f8000ca3e30113349721 (diff)
verify PKCS#7 (S/MIME) signature.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@605 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/mimeview.c')
-rw-r--r--src/mimeview.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mimeview.c b/src/mimeview.c
index 1e3014d2..5a365f76 100644
--- a/src/mimeview.c
+++ b/src/mimeview.c
@@ -786,8 +786,7 @@ static void mimeview_selection_changed(GtkTreeSelection *selection,
default:
mimeview_change_view_type(mimeview, MIMEVIEW_TEXT);
#if USE_GPGME
- if (g_ascii_strcasecmp(partinfo->content_type,
- "application/pgp-signature") == 0)
+ if (rfc2015_is_signature_part(partinfo))
mimeview_show_signature_part(mimeview, partinfo);
else
#endif
@@ -1185,8 +1184,7 @@ static void mimeview_update_signature_info(MimeView *mimeview)
partinfo = mimeview_get_selected_part(mimeview);
if (!partinfo) return;
- if (g_ascii_strcasecmp(partinfo->content_type,
- "application/pgp-signature") == 0) {
+ if (rfc2015_is_signature_part(partinfo)) {
mimeview_change_view_type(mimeview, MIMEVIEW_TEXT);
mimeview_show_signature_part(mimeview, partinfo);
}