You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

548577-gpgme-1.2.patch 899B

123456789101112131415161718192021222324252627282930313233343536373839
  1. From: Antonio Radici <antonio@debian.org>
  2. Date: Thu, 27 Feb 2014 16:50:21 +0100
  3. Subject: 548577-gpgme-1.2
  4. This patch fixes upstream bug http://bugs.mutt.org/3300,
  5. so that Mutt will be able to open pgp crypted/signed
  6. message with gpgme.
  7. Gbp-Pq: Topic upstream
  8. ---
  9. init.c | 8 ++++++++
  10. 1 file changed, 8 insertions(+)
  11. diff --git a/init.c b/init.c
  12. index e0a0757..20a66bd 100644
  13. --- a/init.c
  14. +++ b/init.c
  15. @@ -53,6 +53,10 @@
  16. #include <sys/wait.h>
  17. #include <sys/time.h>
  18. +#if defined(CRYPT_BACKEND_GPGME)
  19. +#include <gpgme.h>
  20. +#endif
  21. +
  22. #define CHECK_PAGER \
  23. if ((CurrentMenu == MENU_PAGER) && (idx >= 0) && \
  24. (MuttVars[idx].flags & R_RESORT)) \
  25. @@ -3277,6 +3281,10 @@ void mutt_init (int skip_sys_rc, LIST *commands)
  26. mutt_read_histfile ();
  27. +#ifdef CRYPT_BACKEND_GPGME
  28. + gpgme_check_version (NULL);
  29. +#endif
  30. +
  31. #if 0
  32. set_option (OPTWEED); /* turn weeding on by default */
  33. #endif