SA Bugzilla – Bug 4515
content preview omits first paragraph when no Subject:
Last modified: 2005-11-07 11:55:11 UTC
When run on a message without a Subject: header, the content preview incorrectly contains the second paragraph, not the first. Similarly, code inspection suggests that if a Subject header is longer than MAX_BODY_LINE_LENGTH, the content preview will incorrectly contain text taken from wherever the subject is wrapped. There needs to be a clear, deterministic way to obtain the decoded body text absent the subject. The same mehtod should also be work for the visible body text.
Created attachment 3050 [details] work in progress This patch fixes the issue with missing subjects, but not the issue with long subjects. Either we would need to risk not splitting long subject lines or we would need to add an argument to the functions specifying whether or not they should include the subject.
Taking.
Committed revision 331590. Doesn't deal with the case where the Subject header is longer than MAX_BODY_LINE_LENGTH. The alternatives aren't particularly attractive.