Replies: 1 comment 1 reply
-
I do not think backporting is worth the effort. I would be surprised if the relaxed parsing from Thunderbird could be used in an actual attack. The reason why the current parsing is so strict:
Also note that current parsing of the from has also one big disadvantage: It is incomplete, and does not accept all possible obsolete but valid from headers. And the better error message for failing the from parsing does not bring anything unless you start to encounter mails there is actually fails. Which is probably very unlikely with Thunderbird's own parsing. In general about the backporting: |
Beta Was this translation helpful? Give feedback.
-
Hi @lieser,
I had a look on your committed fixes to the master branch from the weekend.
As far as I can see, you mainly improved parsing
from
andlist-id
fields in your custom parsing functions and added better error messages if these functions fail.In the 2.x branch Thunderbird's own function msgHeaderParser.extractHeaderAddressMailboxes() is used to do the header address parsing.
The Thunderbird method seems much more relaxed and will also return wrong formatted addresses / ids. So, I'd need to implement some tests on the result, to get a stricter checking of the fields to resemble the reults in the master branch's functions.
Do you think, I should try to change the 2.x code? At the moment it seems to be more tolerant about wrong formatted headers, but therefore the error messages aren't as good as in the master branch.
Beta Was this translation helpful? Give feedback.
All reactions