<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr"><br></div><div class="gmail_attr">Sorry for the mess -- too tired to fight with this -- hopefully the content is readable below (will not know before mail leaves...)</div><br>




<div>
<table cellpadding="0" cellspacing="0" class="m_-2689757253001799759email-wrapper" style="padding-top:32px;background-color:#ffffff"><tbody>
<tr><td>
<table cellpadding="0" cellspacing="0"><tbody>
<tr><td style="max-width:560px;padding:24px 24px 32px;background-color:#fafafa;border:1px solid #e0e0e0;border-radius:2px">
<img style="padding:0 24px 16px 0;float:left" width="72" height="72" alt="Virhekuvake" src="cid:16b57a05a19d3f2f3341">
<table style="min-width:272px;padding-top:8px"><tbody>
<tr><td><h2 style="font-size:20px;color:#212121;font-weight:bold;margin:0">
Viestiä ei toimitettu
</h2></td></tr>
<tr><td style="padding-top:20px;color:#757575;font-size:16px;font-weight:normal;text-align:left">
Olet lähettämässä viestiä toisesta osoitteesta tai aliaksesta Lähetysosoite-ominaisuudella. Lähetysosoite-tilin asetukset ovat virheelliset tai vanhentuneet. Tarkista kyseisen tilin asetukset ja yritä lähettää viesti uudelleen.
</td></tr>
<tr><td style="padding-top:24px;color:#4285f4;font-size:14px;font-weight:bold;text-align:left">
<a style="text-decoration:none" href="https://support.google.com/mail/?p=CustomFromDenied" target="_blank">LISÄTIETOJA</a>
</td></tr>
</tbody></table>
</td></tr>
</tbody></table>
</td></tr>
<tr style="border:none;background-color:#fff;font-size:12.8px;width:90%">
<td align="left" style="padding:48px 10px"><br></td>
</tr>
</tbody></table>
</div>

<br><br><br>---------- Forwarded message ----------<br>From: Tomi Ollila <<a href="mailto:tomi.ollila@iki.fi" target="_blank">tomi.ollila@iki.fi</a>><br>To: <a href="mailto:notmuch@notmuchmail.org" target="_blank">notmuch@notmuchmail.org</a><br>Cc: <br>Bcc: <br>Date: Fri, 14 Jun 2019 23:11:47 +0300<br>Subject: Re: [PATCH] configure: fix mktemp call for macOS<br>Hi<br>
<br>
cannot (easily) attach to the thread from this account, therefore...<br>
<br>
First, it would be better if<br>
<br>
TEMP_GPG=$(mktemp -d "${TMPDIR:-/tmp}/notmuch.XXXXXX")<br>
<br>
worked, then the behaviour on Linux would not change.<br>
<br>
<br>
To me it looks like the problem in that one debian bug (i847206) is that the<br>
directory pathname is already like 106 octets -- and on Linux the maximun<br>
unix domain socket pathname is 108 octets -- gpg socket is probably longer<br>
than 1 octet here :D<br>
<br>
In case of macOS (and BSD, so says internet) max pathname is 104 octets<br>
<br>
In Ralph's example $TMPDIR is<br>
<br>
/var/folders/m_/w5lk3r_1495dhnl4l0s96pr00000gn/T/<br>
<br>
-- 50 octets. Also probably older system would not have so much longer<br>
tmpdir settings that appending gpg socket name would make length pass<br>
104 octets...<br>
<br>
But I am not personally against "hardcoding" /tmp/ (i.e. ignoring TMPDIR) as<br>
prefix location where temporary directory for GNUPGHOME is created<br>
(and, again I don't see where it could fail (barring cases similar to xkcd<br>
 workflow)), but perhaps the behavioural change could be mentioned in<br>
the commit message.<br>
<br>
(BTW: in case of clutter, by default $TMPDIR is not set, and if set then user is<br>
responsible of cleaning the clutter. if macOS does its own magic with<br>
$TMPDIR (i.e. w/o user's intervention) then os should also take care<br>
of the clutter...)<br>
<br>
(BTW2: I was about to claim that ./configure in notmuch removes GNUPGHOME<br>
 quickly after its use has ended, but I did not look anything doing that...)<br>
<br>
<br>
Tomi<br>
</div></div>