<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>> mbsync nows a command called  `PassCmd`. You can use it in your<br />> .mbsyncrc file in your IMAPAccount section.</p>
<p>Yes, I am using that command like this:</p>
<p>```<br />PassCmd "gpg -q --for-your-eyes-only --pinentry-mode loopback -d ~/.authinfo.gpg | awk '/some regex/ {print $NF}'" <br />```</p>
<p>> But you should adapt it and not use --no--tty, --for-your-eyes-only as</p>
<p>I am getting problems when invoking mbsync (which in turn invokes gpg)<br />from emacs. With or without `--no-tty`.</p>
<p>Without `--no-tty`: I am prompted to enter the password, but it is<br />within an emacs buffer that is not editable. It should have appeared<br />in the minibuffer where we can actually type the password.</p>
<p>With `--no-tty` (same command as above): </p>
<p>```<br />gpg: Sorry, no terminal at all requested - can't get input<br />```</p>
<p>Almost all blog posts and forum entries that I came across uses<br />`--no-tty` though. I am not sure why.<br />Maybe it was needed for older versions of one of the software<br />involved.</p>
<p>Example posts:<br /> - https://jherrlin.github.io/posts/emacs-mu4e/<br /> - https://f-santos.gitlab.io/2020-04-24-mu4e.html<br /> - https://www.erichgrunewald.com/posts/setting-up-gmail-in-doom-emacs-using-mbsync-and-mu4e/<br /> - https://github.com/danielfleischer/mu4easy<br /> - https://emacs.stackexchange.com/questions/53506/user-friendly-setup-of-emacs-with-gpg-mu4e-and-mu4e-send-delay</p>
</body></html>