If you upload a message to an imap folder that contains mixed line endings, you can end up with missing/corrupt headers on the imap server. The problem is that the code to find lines assumes the lines are all terminated the same way. Usually this will be true, but I've seen one case where this isn't true : when you have an rss message with a wrapped subject. All the headers lines are \n terminated, but the wrapped subject has a \r\n in it. We were looking for \r lines and if we didn't find any, we looked for \n lines. But this made us miss the headers up to the subject. Fix upcoming...
Created attachment 233834 [details] [diff] [review] proposed fix use strpbrk to find the first /r or /n - this works a lot better in my test cases.
Attachment #233834 - Flags: superreview?(mscott)
Attachment #233834 - Flags: superreview?(mscott) → superreview+
Status: NEW → RESOLVED
Last Resolved: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.