On Thu, 30 Jun 2005 20:18:27 +0200, Marco d'Itri said:
> Any comments? IIRC you wrote that code.
I have not lloked at the context, but ..
> From: Joey Hess <[EMAIL PROTECTED]>
> Subject: Re: Bug#316388: still prompts for passphrase with gpg-agent unless
> GPG_TTY is set
> Maybe the mutt developers are not up to speed with the current versions
> of gnupg and pinentry in Debian, neither of which need GPG_TTY. GPG_TTY
IIRC, either pinentry-gtk or pinentry-qt needs to know the current tty
to work properly. Even that they are X applications.
> BTW I think it's illuminating that most hits for GPG_TTY are about how to
> get mutt to work properly.
Yes, GPG_TTY needs to be set for mutt:
int pgp_use_gpg_agent (void)
{
return option (OPTUSEGPGAGENT)
&& getenv ("GPG_TTY")
&& getenv ("GPG_AGENT_INFO");
}
The reason for the GPG_TTY check is that Mutt is not able to know
whether a curses or GTK+ bvased pinentry will be used and thus it
better checks that everything is correct before it tries to use the
agent.
Joey is right in that it shouldn't be needed. I have however not
tested it and frankly never used the classic pgp backend for years.
Shalom-Salam,
Werner
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]