<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body><div style="font-family: 'Goldman Sans', 'Gill Sans', sans-serif;"><div class="markdown" style="white-space: normal;">
<p dir="auto" style="margin: 1.12em 0;">Thanks,</p>
<p dir="auto" style="margin: 1.12em 0;">I did search for gpg M1, but apparently it wasn't the right term :)</p>
<p dir="auto" style="margin: 1.12em 0;">But when I do that, I get</p>
<p dir="auto" style="margin: 1.12em 0;"></p></div><div id="90D8D0D2-D1A7-4C3A-9806-FE9A5D27A6AB"><table class="tdetail" style="border-collapse: collapse; color: black; width: 1280px; font-family: -apple-system; font-size: 13.333333015441895px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;"><tbody><tr class="tregular" style="display: table-row;"><td style="padding: 5px 8px 5px 5px; background-color: rgb(238, 238, 238); text-align: left; word-break: break-word; vertical-align: top;">Command</td><td style="padding: 5px 8px 5px 5px; background-color: rgb(238, 238, 238); text-align: left; word-break: break-word; vertical-align: top;">/opt/homebrew/bin/gpg --no-verbose --batch --no-tty --compliance "openpgp" --status-fd 2 --textmode --armor --local-user "<giovannilanzani@godatadriven.com>" --detach-sign</td></tr><tr class="tregular" style="display: table-row;"><td style="padding: 5px 8px 5px 5px; background-color: rgb(238, 238, 238); text-align: left; word-break: break-word; vertical-align: top;">Output</td><td style="padding: 5px 8px 5px 5px; background-color: rgb(238, 238, 238); text-align: left; word-break: break-word; vertical-align: top;">[GNUPG:] KEY_CONSIDERED 77ED9FA059BCC4F6257775A79D3D91B3A1B5B10A 2<br>[GNUPG:] BEGIN_SIGNING H10<br>[GNUPG:] PINENTRY_LAUNCHED 8944 curses 1.2.0 - - - - 502/20 0<br>gpg: signing failed: Inappropriate ioctl for device<br>[GNUPG:] FAILURE sign 83918950<br>gpg: signing failed: Inappropriate ioctl for device</td></tr></tbody></table></div>
<div class="markdown" style="white-space: normal;"><p dir="auto" style="margin: 1.12em 0;"></p>
<p dir="auto" style="margin: 1.12em 0;">Which is a bit strange, as the config files are the same (if I use the Intel-gpg / brew installation, everything's fine).</p>
<p dir="auto" style="margin: 1.12em 0;">Do you know how I might fix it?</p>
<p dir="auto" style="margin: 1.12em 0;">On 3 Aug 2022, at 11:00, Philip Paeps wrote:</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #3983C4; color: #3983C4;">
<p dir="auto" style="margin: 1.12em 0;">On 2022-08-03 16:02:33 (+0800), Giovanni Lanzani wrote:</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #3983C4; border-left-color: #7CBF0C; color: #7CBF0C;">
<p dir="auto" style="margin: 1.12em 0;">Is there a way to tell Mailmate to look into <code>/opt/homebrew/bin</code> for gpg, instead of relying on <code>/usr/local/bin</code>?</p>
</blockquote>
<p dir="auto" style="margin: 1.12em 0;">This worked for me:</p>
<pre style="margin-left: 15px; margin-right: 15px; padding: 5px; border: thin solid gray; overflow-x: auto; max-width: 90vw;"><code>defaults write com.freron.MailMate environmentVariables -array '{ enabled = :true; name = "MM_GPG"; value = "/opt/homebrew/bin/gpg"; }'
</code></pre>
<p dir="auto" style="margin: 1.12em 0;">Found in the mailing list archives. :)</p>
<p dir="auto" style="margin: 1.12em 0;">Philip</p>
<p dir="auto" style="margin: 1.12em 0;">--<br>
Philip Paeps<br>
Senior Reality Engineer<br>
Alternative Enterprises</p>
<hr>
<p dir="auto" style="margin: 1.12em 0;">mailmate mailing list<br>
<a href="mailto:mailmate@lists.freron.com">mailmate@lists.freron.com</a><br>
<a href="https://lists.freron.com/listinfo/mailmate">https://lists.freron.com/listinfo/mailmate</a></p>
</blockquote>
</div></div></body>
</html>