<!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">I don't really understand PGP/GPG, either.  But what I can vaguely glean from what I read is that GPG has 2 ways of deciding whether to trust a key.  One is based on signatures, and one is based on what I tell it (that's what accounts for the 5 and 6 ratings -- me just saying I trust this key).  Perhaps the way MailMate interacts with GPG means that it uses only the web of trust/signature model and ignores this other thing (which may be "user trust," I'm not sure).  I'll dig around and see if I can figure it out, and post if I can.</p>
<p dir="auto">Best,<br>
r</p>
<br><p dir="auto">On 28 Sep 2017, at 1:41, Benny Kjær Nielsen wrote:</p>
</div>
<blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><div id="782DD88D-5599-4358-B4B6-BF6E1E28BAC5">

<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><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">_______________________________________________<br>
mailmate mailing list<br>
mailmate@lists.freron.com<br>
<a href="https://lists.freron.com/listinfo/mailmate" style="color:#777">https://lists.freron.com/listinfo/mailmate</a></p>
</blockquote></div>
</div>
</body>
</html>