unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] Drop deprecated/unused crypto.gpg_path
@ 2020-02-18 22:42 Daniel Kahn Gillmor
  2020-02-19  6:26 ` Tomi Ollila
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Kahn Gillmor @ 2020-02-18 22:42 UTC (permalink / raw)
  To: Notmuch Mail

crypto.gpg_path was only used when we built against gmime versions
before 3.0.  Since we now depend on gmime 3.0.3 or later, it is
meaningless.

The removal of the field from the _notmuch_config struct would be an
ABI change if that struct were externally exposed, but it is not, so
it's safe to unilaterally remove it.

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
---
 bindings/python-cffi/tests/conftest.py | 2 --
 doc/man1/notmuch-config.rst            | 8 --------
 notmuch-config.c                       | 1 -
 3 files changed, 11 deletions(-)

diff --git a/bindings/python-cffi/tests/conftest.py b/bindings/python-cffi/tests/conftest.py
index e322cc64..de7db8e7 100644
--- a/bindings/python-cffi/tests/conftest.py
+++ b/bindings/python-cffi/tests/conftest.py
@@ -78,8 +78,6 @@ def maildir(tmppath):
             exclude_tags=deleted;spam;
             [maildir]
             synchronize_flags=true
-            [crypto]
-            gpg_path=gpg
             """.format(tmppath=tmppath)))
     return MailDir(tmppath)
 
diff --git a/doc/man1/notmuch-config.rst b/doc/man1/notmuch-config.rst
index 7347ad31..323a8b65 100644
--- a/doc/man1/notmuch-config.rst
+++ b/doc/man1/notmuch-config.rst
@@ -134,14 +134,6 @@ The available configuration items are described below.
 
     Default: ``true``.
 
-**crypto.gpg_path**
-    Name (or full path) of gpg binary to use in verification and
-    decryption of PGP/MIME messages.  NOTE: This configuration item is
-    deprecated, and will be ignored if notmuch is built against GMime
-    3.0 or later.
-
-    Default: ``gpg``.
-
 **index.decrypt** **[STORED IN DATABASE]**
     Policy for decrypting encrypted messages during indexing.  Must be
     one of: ``false``, ``auto``, ``nostash``, or ``true``.
diff --git a/notmuch-config.c b/notmuch-config.c
index 1b079e85..19c2ddb3 100644
--- a/notmuch-config.c
+++ b/notmuch-config.c
@@ -119,7 +119,6 @@ struct _notmuch_config {
     bool is_new;
 
     char *database_path;
-    char *crypto_gpg_path;
     char *user_name;
     char *user_primary_email;
     const char **user_other_email;
-- 
2.25.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] Drop deprecated/unused crypto.gpg_path
  2020-02-18 22:42 [PATCH] Drop deprecated/unused crypto.gpg_path Daniel Kahn Gillmor
@ 2020-02-19  6:26 ` Tomi Ollila
  2020-02-19 12:19   ` David Bremner
  0 siblings, 1 reply; 3+ messages in thread
From: Tomi Ollila @ 2020-02-19  6:26 UTC (permalink / raw)
  To: Daniel Kahn Gillmor, Notmuch Mail

On Tue, Feb 18 2020, Daniel Kahn Gillmor wrote:

> crypto.gpg_path was only used when we built against gmime versions
> before 3.0.  Since we now depend on gmime 3.0.3 or later, it is
> meaningless.
>
> The removal of the field from the _notmuch_config struct would be an
> ABI change if that struct were externally exposed, but it is not, so
> it's safe to unilaterally remove it.
>
> Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
> ---
>  bindings/python-cffi/tests/conftest.py | 2 --
>  doc/man1/notmuch-config.rst            | 8 --------
>  notmuch-config.c                       | 1 -
>  3 files changed, 11 deletions(-)

All code removal \o/ ! LGTM.

Tomi

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Drop deprecated/unused crypto.gpg_path
  2020-02-19  6:26 ` Tomi Ollila
@ 2020-02-19 12:19   ` David Bremner
  0 siblings, 0 replies; 3+ messages in thread
From: David Bremner @ 2020-02-19 12:19 UTC (permalink / raw)
  To: Tomi Ollila, Daniel Kahn Gillmor, Notmuch Mail

Tomi Ollila <tomi.ollila@iki.fi> writes:
>
> All code removal \o/ ! LGTM.
>

pushed,

d

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-02-19 12:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-18 22:42 [PATCH] Drop deprecated/unused crypto.gpg_path Daniel Kahn Gillmor
2020-02-19  6:26 ` Tomi Ollila
2020-02-19 12:19   ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).