summaryrefslogblamecommitdiffstats
path: root/source/n/mutt/mutt.gpgme.diff
blob: 8f8c40a4f14c7ed8b26fe3c23c8f13e0ff6212a2 (plain) (tree)

































                                                         
--- mutt-1.5.20/init.c.orig	2009-07-21 17:54:59 +0200
+++ mutt-1.5.20/init.c	2009-07-21 17:59:47 +0200
@@ -37,7 +37,6 @@
 #endif
 
 
-
 #include "mx.h"
 #include "init.h"
 #include "mailbox.h"
@@ -50,6 +49,10 @@
 #include <errno.h>
 #include <sys/wait.h>
 
+#if defined(CRYPT_BACKEND_GPGME)
+#include <gpgme.h>
+#endif
+
 #define CHECK_PAGER \
   if ((CurrentMenu == MENU_PAGER) && (idx >= 0) &&	\
 	    (MuttVars[idx].flags & R_RESORT)) \
@@ -3262,6 +3265,11 @@
 
   mutt_read_histfile ();
 
+#ifdef CRYPT_BACKEND_GPGME
+  /* needed since version 1.2.0, ticket #3300 */
+  gpgme_check_version (NULL);
+#endif
+
 #if 0
   set_option (OPTWEED); /* turn weeding on by default */
 #endif