Re: Issue in RFC2047 encoding of Subject

2020-11-05 Thread Gero Treuner
Hi Arnt, On Thu, Nov 05, 2020 at 06:39:35PM +0100, Arnt Gulbrandsen wrote: > On Thursday 5 November 2020 18:02:15 CET, Gero Treuner wrote: > > Then the logic and also my case is compliant to the standard, although > > it is not ideal to cut within plain text words when there is enough > > remainin

Re: Issue in RFC2047 encoding of Subject

2020-11-05 Thread Arnt Gulbrandsen
On Thursday 5 November 2020 18:02:15 CET, Gero Treuner wrote: Then the logic and also my case is compliant to the standard, although it is not ideal to cut within plain text words when there is enough remaining space on the line, forcing the second part of the word to be encoded regardless of the

Re: Issue in RFC2047 encoding of Subject

2020-11-05 Thread Gero Treuner
Hi Kevin, On Thu, Nov 05, 2020 at 08:43:42AM -0800, Kevin J. McCarthy wrote: > On Thu, Nov 05, 2020 at 04:47:20PM +0100, Gero Treuner wrote: [...] > > So the space between the encoded words is not shown, > > Yes, this is correct according the section 6.2 which Arnt mentioned. > > > while the spa

Re: Issue in RFC2047 encoding of Subject

2020-11-05 Thread Kevin J. McCarthy
On Thu, Nov 05, 2020 at 04:47:20PM +0100, Gero Treuner wrote: My understanding is based on this section on page 3: An 'encoded-word' may not be more than 75 characters long, including 'charset', 'encoding', 'encoded-text', and delimiters. If it is desirable to encode more text than will fit

Re: Issue in RFC2047 encoding of Subject

2020-11-05 Thread Gero Treuner
Hi Arnt, Thanks for the input. On Thu, Nov 05, 2020 at 02:32:03PM +0100, Arnt Gulbrandsen wrote: > On Thursday 5 November 2020 09:49:44 CET, Gero Treuner wrote: > > * I interpret RFC2047 that separating encoded blocks by space (without > > newline) means two words, so space should be displayed

Re: Issue in RFC2047 encoding of Subject

2020-11-05 Thread Arnt Gulbrandsen
On Thursday 5 November 2020 09:49:44 CET, Gero Treuner wrote: * I interpret RFC2047 that separating encoded blocks by space (without newline) means two words, so space should be displayed to the user as-is (Mutt doesn't display the space, but this probably is a different story) Mutt is righ

Issue in RFC2047 encoding of Subject

2020-11-05 Thread Gero Treuner
Hi all, I stumbled over an issue with the subject these days, which I aleady saw 1-2 years ago, causing the subject to be displayed corruptly on another device. It looks that there are inconsistencies in various places (even on the other device), and - while preparing for a fix - more knowledge a