]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-reply.c
config: deprecate/drop crypto.gpg_path under gmime 2.6/3.0
[notmuch] / notmuch-reply.c
index 4c1dd56024698041f1c97bca50347ffca8cace2e..40201b805369307727507bb2a6a4b206af25d7a8 100644 (file)
@@ -286,7 +286,7 @@ static InternetAddressList *get_sender(GMimeMessage *message)
        if (! reply_to_header_is_redundant (message, reply_to_list))
            return reply_to_list;
 
-       g_object_unref (G_OBJECT (reply_to_list));
+       g_mime_2_6_unref (G_OBJECT (reply_to_list));
     }
 
     return g_mime_message_get_from (message);
@@ -740,7 +740,9 @@ notmuch_reply_command (notmuch_config_t *config, int argc, char *argv[])
        return EXIT_FAILURE;
     }
 
+#if (GMIME_MAJOR_VERSION < 3)
     params.crypto.gpgpath = notmuch_config_get_crypto_gpg_path (config);
+#endif
 
     if (notmuch_database_open (notmuch_config_get_database_path (config),
                               NOTMUCH_DATABASE_MODE_READ_ONLY, &notmuch))