<!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 2 Feb 2017, at 21:50, Steven M. Bellovin wrote:</p>

<p dir="auto"></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">I composed a reply message to someone and requested PGP encryption and signature.  However, my copy of the recipient's key was expired.  I obtained a new version, but MailMate still insisted it was expired when I tried resending the draft.  I deleted the old key from my key ring, and tried stopping and restarting MailMate, but to no avail.  I finally copied all of the text from my reply message, deleted it, and created a new reply, pasting in the old text.  This seems to suggest that MailMate is caching the key on first attempt and not refreshing it, which doesn't seem right.  (I'm running 2.0 BETA 6074.)</p>
</blockquote></div>
<div style="white-space:normal">

<p dir="auto">MailMate doesn't cache anything related to PGP keys. Every time an OpenPGP action is needed then MailMate uses the external <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">gpg2</code> command. There is a daemon running (used by <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">gpg2</code>) name <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">gpg-agent</code>, but I don't know enough about the internal behavior of <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">gpg2</code> to know if this explains the issue. It's possible to kill the daemon (and then it's restarted when needed):</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">killall gpg-agent
</code></pre>

<p dir="auto">You can try that if you see this issue again.</p>

<p dir="auto">You can also get debug output from MailMate like this:</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
/Applications/MailMate.app/Contents/MacOS/MailMate
</code></pre>

<p dir="auto">Then you should be able to see how MailMate uses <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">gpg2</code>.</p>

<p dir="auto">I hope this helps.</p>

<p dir="auto">-- <br>
Benny</p>
</div>
</div>
</body>
</html>