Re: Line breaks in headers are not properly handled
Hello Stefan, On Mon, 15 Nov 2021 15:23:52 +0200 GMT (15/11/2021, 20:23 +0700 GMT), Stefan Tanurkov via TBBETA wrote: >> I have the feeling it's our ancient Exchange 2010 (!) that's adding those >> spurious line breaks. > Yeah, it looks like the sweet pair of Outlook + Exchange make wonders > together :-) It's a rare problem, but I agree we need to sanitize address > fields in a more friendly manner. > No need for an entire message as I have all the info I need. Now, I'm waiting > for Thomas Fernandez input as he has somewhat different issue but also about > sanitizing the headers... Already sent and yes, "sanitising" sounds like the cure for this! > Thanks again, please stay tuned! :-) Thanks! -- Cheers, Thomas. Message reply created with The Bat! Version 9.4.5 Halloween Edition (64-bit) under Windows 10.0 Build 19043 'Using TBBETA' information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re[2]: Line breaks in headers are not properly handled
I think the header was fine while sending - when I did it on my own mailserver (postfix/dovecot) everything was fine. Only when I sent through my work's Exchange server the garbage linebreaks got added. But indeed, probably best to strip this type of mess everywhere.. >> FWIW my lorem ipsum test mail was sent from The Bat, so no Outlook involved >> in >> that one ;) > Which means we need to sanitize outgoing address headers too :) 'Using TBBETA' information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Line breaks in headers are not properly handled
> FWIW my lorem ipsum test mail was sent from The Bat, so no Outlook involved in > that one ;) Which means we need to sanitize outgoing address headers too :) -- Best regards, Stefan Tanurkov 'Using TBBETA' information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re[2]: Line breaks in headers are not properly handled
FWIW my lorem ipsum test mail was sent from The Bat, so no Outlook involved in that one ;) > Yeah, it looks like the sweet pair of Outlook + Exchange make wonders > together :-) It's a rare problem, but I agree we need to sanitize address > fields in a more friendly manner. 'Using TBBETA' information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Line breaks in headers are not properly handled
Hello Adrian, > Another one (this time a real one, not a test) has this in the header: > To: =?utf-8?Q?Adrian_M=C3=B6nnich?= , > =?utf-8?Q?Jose_XXX=0D=0A_XXX_Lopez?= Thank you! > I have the feeling it's our ancient Exchange 2010 (!) that's adding those > spurious line breaks. Yeah, it looks like the sweet pair of Outlook + Exchange make wonders together :-) It's a rare problem, but I agree we need to sanitize address fields in a more friendly manner. No need for an entire message as I have all the info I need. Now, I'm waiting for Thomas Fernandez input as he has somewhat different issue but also about sanitizing the headers... Thanks again, please stay tuned! :-) -- Best regards, Stefan Tanurkov 'Using TBBETA' information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re[2]: Line breaks in headers are not properly handled
Another one (this time a real one, not a test) has this in the header: To: =?utf-8?Q?Adrian_M=C3=B6nnich?= , =?utf-8?Q?Jose_XXX=0D=0A_XXX_Lopez?= I have the feeling it's our ancient Exchange 2010 (!) that's adding those spurious line breaks. In any case, I don't think preserving them makes sense - I think collapsing any kind of consecutive whitespace into a single space would be logical there. Those headers are most likely not supposed to contain line breaks anyway. If you need the original email nonetheless I can send it to you privately, but except for the different encoding it's not really different... Cheers Adrian > Hello Adrian, >> I've attached an email and screenshots on the BT entry. > Thanks! From what I see, the name contains special characters (see =0D=0A ) > for some reason. Generally, it's not a wise idea to use it in email address > fields > To: > =?windows-1250?Q?Lorem_ipsum_dolor_sit_amet=2C_consectetur_adipiscing_elit=2C_sed_do_eius?= > =?windows-1250?Q?mod=0D=0A_tempor_incididunt?= > So, those slashes just preserve the new line characters in the name. It > would be better if you privately send some real life examples to me, though... 'Using TBBETA' information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Line breaks in headers are not properly handled
Hello Adrian, > I've attached an email and screenshots on the BT entry. Thanks! From what I see, the name contains special characters (see =0D=0A ) for some reason. Generally, it's not a wise idea to use it in email address fields To: =?windows-1250?Q?Lorem_ipsum_dolor_sit_amet=2C_consectetur_adipiscing_elit=2C_sed_do_eius?= =?windows-1250?Q?mod=0D=0A_tempor_incididunt?= So, those slashes just preserve the new line characters in the name. It would be better if you privately send some real life examples to me, though... -- Best regards, Stefan Tanurkov 'Using TBBETA' information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Line breaks in headers are not properly handled
Hello Stefan, On Mon, 15 Nov 2021 13:04:35 +0200 GMT (15/11/2021, 18:04 +0700 GMT), Stefan Tanurkov via TBBETA wrote: > Hello Adrian, >> sorry for posting where it probably doesn't belong, but this annoying bug is >> affecting me nearly daily due to some rather long names at work, and it seems >> like nobody is reading the bug tracker... > Thank you for reporting the problem! However, we need some material to work > with. I mean - examples and screen shots should be attached, otherwise we > might be unable to reproduce the bug. I will send you a screenshot by PM, as this happens with certan company emails. Just happened again today. -- Cheers, Thomas. Message reply created with The Bat! Version 9.4.5 Halloween Edition (64-bit) under Windows 10.0 Build 19043 'Using TBBETA' information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re[2]: Line breaks in headers are not properly handled
Hi, I've attached an email and screenshots on the BT entry. Cheers Adrian > Hello Adrian, >> sorry for posting where it probably doesn't belong, but this annoying bug is >> affecting me nearly daily due to some rather long names at work, and it seems >> like nobody is reading the bug tracker... > Thank you for reporting the problem! However, we need some material to work > with. I mean - examples and screen shots should be attached, otherwise we > might be unable to reproduce the bug. 'Using TBBETA' information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Line breaks in headers are not properly handled
Hello Adrian, > sorry for posting where it probably doesn't belong, but this annoying bug is > affecting me nearly daily due to some rather long names at work, and it seems > like nobody is reading the bug tracker... Thank you for reporting the problem! However, we need some material to work with. I mean - examples and screen shots should be attached, otherwise we might be unable to reproduce the bug. -- Best regards, Stefan Tanurkov 'Using TBBETA' information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Line breaks in headers are not properly handled
Hello Adrian, On Mon, 15 Nov 2021 11:24:30 +0100 GMT (15/11/2021, 17:24 +0700 GMT), Adrian wrote: > sorry for posting where it probably doesn't belong, but this annoying bug is > affecting me nearly daily due to some rather long names at work, and it seems > like nobody is reading the bug tracker... > https://bt.ritlabs.com/view.php?id=2115 [...] Confirmed, note added. -- Cheers, Thomas. Message reply created with The Bat! Version 9.4.5 Halloween Edition (64-bit) under Windows 10.0 Build 19043 'Using TBBETA' information: http://www.silverstones.com/thebat/TBUDLInfo.html
Line breaks in headers are not properly handled
Hi, sorry for posting where it probably doesn't belong, but this annoying bug is affecting me nearly daily due to some rather long names at work, and it seems like nobody is reading the bug tracker... https://bt.ritlabs.com/view.php?id=2115 I received an email with a To header like this (same problem in CC where it's even more common due to out mailing lists often having long names): ``` To: Fooo Baaar , "Fooo.Baaar@domain asdf)" ``` It's being wrapped because it's somewhat long. I believe this is allowed in the relevant standards. However, when viewing the mail, it gets displayed like this: ``` Fooo Baaar , "Fooo.Baaar@domain\ \ asdf)" ``` which makes no sense. Worse, when replying to all, this backslash nonsense is kept there as well. Cheers Adrian 'Using TBBETA' information: http://www.silverstones.com/thebat/TBUDLInfo.html