On Tue, 3 Nov 2020 13:39:47 -0800 Loren Wilton wrote: > >> See rawbody_part_scan is the docs. > > > > Also the chunking of the rawbody into 2-4 kB blocks, may make a > > difference. > > I wasn't able to find rawbody_part_scan in any of the docs that I > managed to find, but after digging into the source I found the > chunking logic and dug out the 2K limit. I'm not sure why I was > hitting a limit at just under 1K, I can only guess that the header > was included in the first rawbody chunk, which seems a little > unlikely.
The problem is that in general the "<font style=" match could occur anywhere within a chunk, so there's no cutoff that's guaranteed to work, it just improves the probability of success.