[PATCH] cli: crypto: tell gmime to use gpg-agent

2013-03-02 Thread David Bremner
Jani Nikula writes: > For decryption, we expect there to be a functioning gpg-agent, and we > want gpg to talk to it for any needed credentials. There's a gmime > function to declare that: g_mime_gpg_context_set_use_agent() [1], [2]. > Start using it. Pushed this, and the followup man page

Re: [PATCH] cli: crypto: tell gmime to use gpg-agent

2013-03-02 Thread David Bremner
Jani Nikula j...@nikula.org writes: For decryption, we expect there to be a functioning gpg-agent, and we want gpg to talk to it for any needed credentials. There's a gmime function to declare that: g_mime_gpg_context_set_use_agent() [1], [2]. Start using it. Pushed this, and the followup

[PATCH] cli: crypto: tell gmime to use gpg-agent

2013-03-01 Thread Tomi Ollila
On Fri, Mar 01 2013, Daniel Kahn Gillmor wrote: > On 02/28/2013 04:10 PM, Jameson Graef Rollins wrote: >> I think this point makes sense. I guess my main worry was that querying >> the agent would have unintended consequences for someone who is not >> expecting it or specifically does not want

[PATCH] cli: crypto: tell gmime to use gpg-agent

2013-02-28 Thread Daniel Kahn Gillmor
On 02/28/2013 04:10 PM, Jameson Graef Rollins wrote: > I think this point makes sense. I guess my main worry was that querying > the agent would have unintended consequences for someone who is not > expecting it or specifically does not want it to be queried. But maybe > the point is that if

[PATCH] cli: crypto: tell gmime to use gpg-agent

2013-02-28 Thread Jameson Graef Rollins
On Wed, Feb 27 2013, Jani Nikula wrote: > If the user wants to have decryption in notmuch, the user *must* use > gpg-agent, regardless of this change or the "use-agent" configuration > option. There is no opt out if one wants to have decryption in notmuch, > regardless of this change. I think

Re: [PATCH] cli: crypto: tell gmime to use gpg-agent

2013-02-28 Thread Jameson Graef Rollins
On Wed, Feb 27 2013, Jani Nikula j...@nikula.org wrote: If the user wants to have decryption in notmuch, the user *must* use gpg-agent, regardless of this change or the use-agent configuration option. There is no opt out if one wants to have decryption in notmuch, regardless of this change. I

Re: [PATCH] cli: crypto: tell gmime to use gpg-agent

2013-02-28 Thread Daniel Kahn Gillmor
On 02/28/2013 04:10 PM, Jameson Graef Rollins wrote: I think this point makes sense. I guess my main worry was that querying the agent would have unintended consequences for someone who is not expecting it or specifically does not want it to be queried. But maybe the point is that if they

[PATCH] cli: crypto: tell gmime to use gpg-agent

2013-02-27 Thread David Bremner
Jameson Graef Rollins writes: > I will argue that the "use-agent" option should be enabled. If we force > use of gpg-agent, then we don't allow people to opt out of using it. > That's not very user friendly, particularly if someone has not enabled > it for a specific reason. But right now we

[PATCH] cli: crypto: tell gmime to use gpg-agent

2013-02-27 Thread Tomi Ollila
On Wed, Feb 27 2013, Jani Nikula wrote: > For decryption, we expect there to be a functioning gpg-agent, and we > want gpg to talk to it for any needed credentials. There's a gmime > function to declare that: g_mime_gpg_context_set_use_agent() [1], [2]. > Start using it. > > I had gpg-agent

[PATCH] cli: crypto: tell gmime to use gpg-agent

2013-02-27 Thread Jani Nikula
For decryption, we expect there to be a functioning gpg-agent, and we want gpg to talk to it for any needed credentials. There's a gmime function to declare that: g_mime_gpg_context_set_use_agent() [1], [2]. Start using it. I had gpg-agent running, but gpg "use-agent" configuration option

[PATCH] cli: crypto: tell gmime to use gpg-agent

2013-02-27 Thread Jameson Graef Rollins
On Wed, Feb 27 2013, David Bremner wrote: > But right now we force people to enable the agent globally via use-agent > if they want to decrypt mail in notmuch-cli/emacs. The proposed change > allows them to use the agent only for notmuch. Doesn't the proposed change actually *force* the user to

[PATCH] cli: crypto: tell gmime to use gpg-agent

2013-02-27 Thread Jameson Graef Rollins
On Tue, Feb 26 2013, Jani Nikula wrote: > For decryption, we expect there to be a functioning gpg-agent, and we > want gpg to talk to it for any needed credentials. There's a gmime > function to declare that: g_mime_gpg_context_set_use_agent() [1], [2]. > Start using it. > > I had gpg-agent

Re: [PATCH] cli: crypto: tell gmime to use gpg-agent

2013-02-27 Thread Tomi Ollila
On Wed, Feb 27 2013, Jani Nikula j...@nikula.org wrote: For decryption, we expect there to be a functioning gpg-agent, and we want gpg to talk to it for any needed credentials. There's a gmime function to declare that: g_mime_gpg_context_set_use_agent() [1], [2]. Start using it. I had

Re: [PATCH] cli: crypto: tell gmime to use gpg-agent

2013-02-27 Thread David Bremner
Jameson Graef Rollins jroll...@finestructure.net writes: I will argue that the use-agent option should be enabled. If we force use of gpg-agent, then we don't allow people to opt out of using it. That's not very user friendly, particularly if someone has not enabled it for a specific reason.

Re: [PATCH] cli: crypto: tell gmime to use gpg-agent

2013-02-27 Thread Jameson Graef Rollins
On Wed, Feb 27 2013, David Bremner da...@tethera.net wrote: But right now we force people to enable the agent globally via use-agent if they want to decrypt mail in notmuch-cli/emacs. The proposed change allows them to use the agent only for notmuch. Doesn't the proposed change actually

Re: [PATCH] cli: crypto: tell gmime to use gpg-agent

2013-02-27 Thread Jani Nikula
On Wed, 27 Feb 2013, Jameson Graef Rollins jroll...@finestructure.net wrote: On Wed, Feb 27 2013, David Bremner da...@tethera.net wrote: But right now we force people to enable the agent globally via use-agent if they want to decrypt mail in notmuch-cli/emacs. The proposed change allows them

[PATCH] cli: crypto: tell gmime to use gpg-agent

2013-02-26 Thread Jani Nikula
For decryption, we expect there to be a functioning gpg-agent, and we want gpg to talk to it for any needed credentials. There's a gmime function to declare that: g_mime_gpg_context_set_use_agent() [1], [2]. Start using it. I had gpg-agent running, but gpg use-agent configuration option disabled.