On Tue, 19 Apr 2016 11:59:35 +0300 Nerijus Baliunas 
<neri...@users.sourceforge.net> 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

Attachment: pgpgREZa9EDgN.pgp
Description: PGP signature

------------------------------------------------------------------------------
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
_______________________________________________
Mahogany-Developers mailing list
Mahogany-Developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mahogany-developers

Reply via email to