Re: new odd behavior

Albrecht Dreß <[email protected]> Fri, 30 Jul 2021 19:38:18 +0200
Newsgroups gmane.comp.gnome.apps.balsa
Message-ID <[email protected]>
--===============8395254289738359373==
Content-Type: multipart/signed; micalg=PGP-SHA512;
	protocol="application/pgp-signature"; boundary="=-0toCGaoWyrO2g3VVsE4h"

--=-0toCGaoWyrO2g3VVsE4h
Content-Type: text/plain; charset=UTF-8; DelSp=Yes; Format=Flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi Jack:

Am 29.07.21 21:58 schrieb(en) Jack via balsa-list:
> I've been trading lots of email lately with a friend, and he recently sta=
rted complaining that when he replies to some of me messages, the To: field=
 does not populate.  It turns out, that happens with message I send from Ba=
lsa (on my desktop) but not with messages I send from Thunderbird on my lap=
top.  (both Linux)  Note in both cases, I'm using a "real" email address, t=
here is not alias or forwarding going on.  (I recall Reply-To: shows up whe=
n I send with a "From:" address but use the SMTP server of a domain differe=
nt from that address (such as this message - from sourceforge.net, but actu=
aly sent through gmail.)
> =E2=80=8B
> He sent me full header dumps of and example of each, and the "bad" messag=
e has a blank "Reply-To:" header.  If I look in my sent-mail, I do see blan=
k Reply-To: headers, although Balsa doesn't actually display them when I sh=
ow All Headers looking at my Sent Box.

This is a bug in the code, actually=E2=80=A6

See <https://gitlab.gnome.org/GNOME/balsa/-/blob/master/libbalsa/send.c#L14=
35>: in the =E2=80=9Cheaders=E2=80=9D struct, all InternetAddressList eleme=
nts are populated, but the list /length/ may be 0 for unused ones.

g_mime_message_get_reply_to() returns an empty list, to which an empty list=
 is added, resulting in an empty header.  The same applies to To:, Cc: and =
Bcc: (From: shouldn't be empty).

I push a bug fix to git asap.

Thanks a lot for pointing to that issue!

Cheers,
Albrecht.
--=-0toCGaoWyrO2g3VVsE4h
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcCEPemLFTtyGf4zATKlvDmfn2fgFAmEEOQoACgkQTKlvDmfn
2fhF9Qf/QwWgNd20lBXb8ZAWr+34N5jmf7AJ4h6OQDR8vFZT3kXcjaO9d2rimCKi
xa28uNzzZlCt0yfBPRBAMS/nsyICS6N4EwRKFv5y5kfTITEz6+6U8/Jn4gA60KIa
Sj/80tDsiLkULTBRSwFfMuLDzqJZo9SFrj0hqjNgRtW/r5njMhzfCQt4sGA3Vomg
ml4gZ11Bx2jVFAFKVcSC1wQgT9j4KByzlFls6q3JZHbCmKSi41QB037bOKA45JnV
WUosOgoZvi7Vj0fITiI9trTI+tc0km3zMWGRuNnpdhNpw3lRC0OnS6mCvKzJPzmi
NfzashQCWkf6aYp0Fwu/uxyTX0cbtA==
=fLAM
-----END PGP SIGNATURE-----

--=-0toCGaoWyrO2g3VVsE4h--

--===============8395254289738359373==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
balsa-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/balsa-list

--===============8395254289738359373==--