Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mew hangs when using gpg-agent with non graphical pinentry frontend. #68

Closed
DanielG opened this issue Jun 2, 2014 · 5 comments
Closed

Comments

@DanielG
Copy link

DanielG commented Jun 2, 2014

When mew tries to decrypt .mew-passwd.gpg it hangs forever when no graphical (i.e. gtk/qt) pinentry program is installed and gpg-agent is in use. I use pinentry-curses usually but when I additionally install pinentry-gtk2 I get a graphical prompt instead of it just hanging.

(setenv "GPG_AGENT_INFO" "") before starting mew seems to work around the issue however this is unsatisfactory as then gpg-agent's functionality is broken in any terminal started as a child process of emacs. When using this workaround I get the nice password prompt in emacs' minibuffer as I'd expect (and not the hang or a graphical prompt).

Sorry I can't provide more detailed information but the complete hang of emacs makes this bug very hard to debug, maybe you have at least some idea why this might be happening and what can be done about it.

@DanielG
Copy link
Author

DanielG commented Jun 2, 2014

Correction: Mew doesn't hang forever. During the Communicating with the IMAP server step and even after the connection times out I am unable to interact with emacs for some time as it accepts no more input, even repeated presses of C-g don't do anything. However eventually (after a few minutes) gpg does seem to time out and I get an IMAP password prompt.

@kazu-yamamoto
Copy link
Owner

Do you use this?

http://www.mew.org/en/feature/smime.html

@DanielG
Copy link
Author

DanielG commented Jun 3, 2014

No, I only use gpg.

@kazu-yamamoto
Copy link
Owner

If you use GnuPG 2, I think the configuration in the page is necessary.

@DanielG
Copy link
Author

DanielG commented Jun 4, 2014

Oh I see, you meant the installation section. Yeah, seems to work now with mew-pinentry set as the pinentry program :)

Thanks!

@DanielG DanielG closed this as completed Jun 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants