Re: From header displayed incorrectly

Vadim Zeitlin <[email protected]> Wed, 20 Apr 2016 15:13:00 +0200
Newsgroups gmane.mail.mahogany.devel
Message-ID <[email protected]>
--===============0979196081134628561==
Content-Type: MULTIPART/SIGNED; protocol="application/pgp-signature";
	micalg=pgp-sha1; BOUNDARY="4294967295-41-1461157980=:12660"

--4294967295-41-1461157980=:12660
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-Disposition: INLINE

On Tue, 19 Apr 2016 11:59:35 +0300 Nerijus Baliunas <[email protected]> wrote:

NB> any idea where in the code I can fix "[]"? I tried to search unsuccesfully...

 Hi,

 This is almost surely coming from c-client, at least the "Must use comme
to separate addresses" debug log I see when viewing your message with "[]"
in the "From" line comes from rfc822_parse_adrlist() defined in
lib/imap/src/c-client/rfc822.c. In any case, I don't think you can change
the behaviour of this function and it could well be that square brackets
are not allowed in the addresses (I'd to carefully reread
https://tools.ietf.org/html/rfc5322 to be sure about this though).

 So maybe the best solution would be to check for errors in the headers
(MISSING_DOMAIN, UNEXPECTED_DATA_AFTER_ADDRESS, INVALID_ADDRESS, ...) and
show the raw value, without trying to parse them in this case.

 Regards,
VZ

--4294967295-41-1461157980=:12660
Content-Type: APPLICATION/PGP-SIGNATURE

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)

iEYEABECAAYFAlcXgFwACgkQBupB3k9sHoZnAwCfeCRn2RmRc+NvPWmCu525h26P
r/0AoItJsSdPfQOA1YC0lZ5H74rU/01r
=slb8
-----END PGP SIGNATURE-----

--4294967295-41-1461157980=:12660--


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

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
--===============0979196081134628561==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Mahogany-Developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-developers

--===============0979196081134628561==--