<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 28 Sep 2017, at 1:41, Benny Kjær Nielsen wrote:</p>
</div>
<div style="white-space:normal"></div>
<blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><div id="8B1CBE74-4269-4793-A3CC-97F3CE63CEF8">
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 27 Sep 2017, at 22:00, Robert Goldman wrote:</p>
</div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">Whenever I try to send a message with GPG encryption, I get an "OpenPGP encryption failed dialog box." The horrible error message (I know -- this is GPG's fault, not MailMate's!) looks like this:</p>
</blockquote></div>
<div style="white-space:normal">
<p dir="auto">The fact that I chose to just pass on the error messages to the user shows that I did not dare to try to “translate” them into something more comprehensible :)</p>
</div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">But the trust level on my recipient's key is 5 and mine is 6. So why does this fail?</p>
</blockquote></div>
<div style="white-space:normal">
<p dir="auto">You need to sign the key, e.g., using the “GPG Keychain” application or <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">gpg2</code>. This is not always necessary though. OpenPGP is based on a “web of trust” and there are other ways that <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">gpg2</code> might determine that a key is valid. The details can be found in the “Using trust to validate keys” on <a href="https://www.gnupg.org/gph/en/manual/x334.html" style="color:#3983C4">this page</a>.</p>
<p dir="auto">I don't claim to understand the details of “trust” and “validity” and I often find it confusing myself. Luckily (for me), all this really happens outside of MailMate. If you want to debug how MailMate uses <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">gpg2</code> then you can see how it's used by enabling the <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">MmDebugSecurity</code> hidden preference and launching MailMate from a Terminal window. You should be able to simply copy/paste the <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">gpg2</code> command and the arguments provided by MailMate if you want to do what MailMate does directly on the command line.</p>
<p dir="auto">I hope this helps.</p>
<p dir="auto">-- <br>
Benny</p>
</div>
</div></div></blockquote>
<div style="white-space:normal">
<blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px">
</blockquote></div>
<div style="white-space:normal">
<p dir="auto">I tried out the following:</p>
<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7">defaults write com.freron.MailMate MmDebugSecurity -bool YES ; open /Applications/MailMate.app
</code></pre>
<p dir="auto">...but I don't see anything in the terminal window or the console. Did I do something wrong?</p>
</div>
</div>
</body>
</html>