<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Andrej, Paul,</div><div><br></div><div>Thanks for the quick responses, I'm sure I'm being dense, but I'm still stuck. See below:</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 30, 2019 at 3:29 AM Andrej Kacian <<a href="mailto:ticho@claws-mail.org">ticho@claws-mail.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, 29 Jan 2019 17:51:23 -0600<br>
Luke Robison <<a href="mailto:lukerobison@gmail.com" target="_blank">lukerobison@gmail.com</a>> wrote:<br>
<br>
> Now back to claws, I'm unsure if I should give claws the GPG path to<br>
> either gpgsm.exe or gpg.exe, but neither one has much effect.<br>
> Nothing has changed that I can see for encrypted or signed messages.<br>
> No error messages about bad or missing certificates. I've selected<br>
> S/MIME as my preferred encryption.<br>
<br>
You shouldn't need to do this, all GPG "engines" should be<br>
autodetected, with correct paths to relevant programs set up. GPG has a<br>
mechanism (gpgconf.exe) for just that. Look for entries like this in<br>
the debug log, during startup:<br>
<br>
sgpgme.c:767:GpgME Protocol: CMS<br>
Version: 2.0.30 (req 2.0.4)<br>
Executable: C:\Program Files (x86)\GNU\GnuPG\gpgsm.exe<br></blockquote><div>It looks like it is finding my GnuPG that I installed:</div><div><br></div></div></div></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><div><div class="gmail_quote"><div><div>prefs_gpg.c:671:Can't disable gpg agent (no GPG_AGENT_INFO)</div></div></div></div></div></div><div><div><div><div class="gmail_quote"><div><div>sgpgme.c:716:setting gpgme CTYPE locale</div></div></div></div></div></div><div><div><div><div class="gmail_quote"><div><div>sgpgme.c:723:setting gpgme CTYPE locale to: en_US</div></div></div></div></div></div><div><div><div><div class="gmail_quote"><div><div>sgpgme.c:730:setting gpgme locale to UTF8: en_US.UTF-8</div></div></div></div></div></div><div><div><div><div class="gmail_quote"><div><div>sgpgme.c:733:done</div></div></div></div></div></div><div><div><div><div class="gmail_quote"><div><div>sgpgme.c:741:setting gpgme MESSAGES locale</div></div></div></div></div></div><div><div><div><div class="gmail_quote"><div><div>sgpgme.c:748:setting gpgme MESSAGES locale to: en_US</div></div></div></div></div></div><div><div><div><div class="gmail_quote"><div><div>sgpgme.c:754:setting gpgme locale to UTF8: en_US.UTF-8</div></div></div></div></div></div><div><div><div><div class="gmail_quote"><div><div>sgpgme.c:758:done</div></div></div></div></div></div><div><div><div><div class="gmail_quote"><div><div>sgpgme.c:767:GpgME Protocol: OpenPGP</div></div></div></div></div></div><div><div><div><div class="gmail_quote"><div><div>Version: 2.2.12</div></div></div></div></div></div><div><div><div><div class="gmail_quote"><div><div> (req 1.4.0)</div></div></div></div></div></div><div><div><div><div class="gmail_quote"><div><div>Executable: C:\Users\robison\AppData\Local\gnupg\bin\gpg.exe</div></div></div></div></div></div><div><div><div><div class="gmail_quote"><div><div>sgpgme.c:767:GpgME Protocol: CMS</div></div></div></div></div></div><div><div><div><div class="gmail_quote"><div><div>Version: 2.2.12</div></div></div></div></div></div><div><div><div><div class="gmail_quote"><div><div> (req 2.0.4)</div></div></div></div></div></div><div><div><div><div class="gmail_quote"><div><div>Executable: C:\Users\robison\AppData\Local\gnupg\bin\gpgsm.exe</div></div></div></div></div></div><div><div><div><div class="gmail_quote"><div><div>sgpgme.c:767:GpgME Protocol: GPGCONF</div></div></div></div></div></div><div><div><div><div class="gmail_quote"><div><div>Version: 2.2.12</div></div></div></div></div></div><div><div><div><div class="gmail_quote"><div><div> (req 2.0.4)</div></div></div></div></div></div><div><div><div><div class="gmail_quote"><div><div>Executable: C:\Users\robison\AppData\Local\gnupg\bin\gpgconf.exe</div></div></div></div></div></div><div><div><div><div class="gmail_quote"><div><div>sgpgme.c:767:GpgME Protocol: Assuan</div></div></div></div></div></div><div><div><div><div class="gmail_quote"><div><div>Version: 1.0.0 (req 1.0.0)</div></div></div></div></div></div><div><div><div><div class="gmail_quote"><div><div>Executable: C:\Users\robison\AppData\Roaming\gnupg\S.gpg-agent</div></div></div></div></div></div><div><div><div><div class="gmail_quote"><div><div>sgpgme.c:767:GpgME Protocol: Spawn</div></div></div></div></div></div><div><div><div><div class="gmail_quote"><div><div>Version: 1.0.0 (req 1.0.0)</div></div></div></div></div></div><div><div><div><div class="gmail_quote"><div><div>Executable: /nonexistent</div></div></div></div></div></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div><div>prefs_gpg.c:521:Saving GPG config</div></div><div><br></div></div></div></div></div></blockquote><br><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Leave the GPG path in Claws Mail preferences empty, it is there for<br>
people who are using custom GPG installations, and as far as I know,<br>
should only be used to specify the program for PGP handling (gpg or<br>
gpg.exe), not for S/MIME handling.<br>
<br>
> Trying to send mail does give errors. Simply trying to send a signed<br>
> message gives a "Secret key not found" error, so I suspect what I'm<br>
> running from the command line and what claws is running are two<br>
> different programs. Running with --debug and checking the<br>
> claws-win32.log file doesn't do much either, see log excerpt below<br>
> <br>
> Any suggestions?<br>
<br>
Yes, in Claws Mail account preferences, you need to select S/MIME as<br>
your privacy system. The log excerpt below shows that you have PGPMIME<br>
or PGPInline set, because it is trying to use the OpenPGP protocol.<br></blockquote><div><br></div><div> Under Configuration->Preferences for current account->Account->Privacy the Default Privacy system is set to PGP MIME, and in fact I have even tried removing the PGP Inline plugin, so my only options or PGP MIME or None. I can also check the setting in the Compose window, and it is set to PGP MIME.</div><div><br></div><div>Despite all that, I still see "sgpgme_setup_signers: OpenPGP protocol". And the "secret key not found" error. Does this mean I'm not using PGP MIME?</div><div><br></div><div>Should I be concerned about the "no GPG_AGENT_INFO" note in the log?</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Now, I haven't tried using S/MIME on Windows Claws Mail in a while<br>
(and the gpg4win installer I just downloaded from their site does not<br>
even want to unpack to start installing for some reason, go figure), but<br>
I remember it worked just fine if you have the certificate matching the<br>
e-mail address you are using, the secret key that goes with the<br>
certificate, and the issuer certificate.<br>
<br>
If gpgsm.exe can see these and Claws Mail can find gpg programs (see<br>
above), signing and encrypting messages should work.<br>
<br>
> Luke<br>
> <br>
> procmime.c:2593:procmime_write_mimeinfo<br>
> sgpgme.c:590:sgpgme_setup_signers: OpenPGP protocol<br>
> sgpgme.c:600:using key for <a href="mailto:myemail@company.com" target="_blank">myemail@company.com</a><br>
> warning: setup_signers start: End of filealertpanel.c:253:Creating<br>
> alert panel dialog...<br>
> alertpanel.c:211:called inc_lock (lock count 2)<br>
> alertpanel.c:221:called inc_unlock (lock count 1)<br>
> compose.c:5407:called inc_unlock (lock count 0)<br>
> <br>
<br>
<br>
Regards,<br>
-- <br>
Andrej<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.claws-mail.org" target="_blank">Users@lists.claws-mail.org</a><br>
<a href="https://lists.claws-mail.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.claws-mail.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div></div></div></div></div>