<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On Fri, 01 Feb 2019 11:36:59 +0100 Jordi Mallach
<a class="moz-txt-link-rfc2396E" href="mailto:jordi@debian.org"><jordi@debian.org></a> wrote:<br>
> El dj. 31 de 01 de 2019 a les 20:06 +0000, en/na Matthew Hall
va<br>
> escriure:<br>
> > No problem!<br>
> > <br>
> > It seems to actually be a known issue(?) with SOGo
upstream, I’ve<br>
> > managed to open a bug report on there own tracker:<br>
> > <br>
> > <a class="moz-txt-link-freetext" href="https://sogo.nu/bugs/view.php?id=4659">https://sogo.nu/bugs/view.php?id=4659</a><br>
> > <br>
> > Looks like at least one other punter is having the same
issue, which<br>
> > I guess makes it reproducible!<br>
> > <br>
> > Presumably the Debian package will be rebuilt from their
sources once<br>
> > they’ve patched it?<br>
> <br>
> Yes, once there's a patch we would include it in our version
ASAP.<br>
> <br>
> If you're monitoring the issue, feel free to ping us here if
you see a<br>
> fix has landed.<br>
> <br>
> Jordi<br>
> -- <br>
> Jordi Mallach Pérez -- Debian developer <a class="moz-txt-link-freetext" href="https://www.debian.org/">https://www.debian.org/</a><br>
> <a class="moz-txt-link-abbreviated" href="mailto:jordi@sindominio.net">jordi@sindominio.net</a> <a class="moz-txt-link-abbreviated" href="mailto:jordi@debian.org">jordi@debian.org</a>
<a class="moz-txt-link-freetext" href="https://www.sindominio.net/">https://www.sindominio.net/</a><br>
> GnuPG public key information available at <a class="moz-txt-link-freetext" href="https://oskuro.net/">https://oskuro.net/</a><br>
> <br>
<p>I just posted the following on the SOGO bugtracker issue page.<br>
Patched fixed the problem for me:</p>
<p><br>
</p>
<p>I figured out the problem. The shouldAskReceipt function in
UIxMailView.m<br>
sends a nil email parameter to NGMailAddressParser which calls<br>
[NSString stringWithString] with this parameter. Prior versions of
gnustep<br>
tolerated this but not 1.26.<br>
<br>
A quick fix is below:<br>
<br>
diff -u -r b/SOGo-4.0.5/UI/MailerUI/UIxMailView.m
a/SOGo-4.0.5/UI/MailerUI/UIxMailView.m<br>
--- b/SOGo-4.0.5/UI/MailerUI/UIxMailView.m 2019-01-09
18:03:12.000000000 +0300<br>
+++ a/SOGo-4.0.5/UI/MailerUI/UIxMailView.m 2019-02-11
15:25:44.870164041 +0300<br>
@@ -716,14 +716,17 @@<br>
email = [mailHeaders objectForKey:
@"return-receipt-to"];<br>
}<br>
<br>
- // email here can be <a class="moz-txt-link-rfc2396E" href="mailto:foo@bar.com">"foo@bar.com"</a> or "Foo Bar
<a class="moz-txt-link-rfc2396E" href="mailto:foo@bar.com"><foo@bar.com></a>"<br>
- // we must extract the actual email address<br>
- mailAddress = [[NGMailAddressParser
mailAddressParserWithString: email] parse];<br>
<br>
- if ([mailAddress isKindOfClass: [NGMailAddress class]])<br>
- email = [mailAddress address];<br>
- else<br>
- email = nil;<br>
+ if (email)<br>
+ {<br>
+ // email here can be <a class="moz-txt-link-rfc2396E" href="mailto:foo@bar.com">"foo@bar.com"</a> or "Foo Bar
<a class="moz-txt-link-rfc2396E" href="mailto:foo@bar.com"><foo@bar.com></a>"<br>
+ // we must extract the actual email address<br>
+ mailAddress = [[NGMailAddressParser
mailAddressParserWithString: email] parse];<br>
+ if ([mailAddress isKindOfClass: [NGMailAddress class]])<br>
+ email = [mailAddress address];<br>
+ else<br>
+ email = nil;<br>
+ }<br>
<br>
if (email)<br>
{<br>
<br>
</p>
<p><br>
</p>
<p><br>
</p>
</body>
</html>