Closed Bug 2054385 Opened 3 months ago Closed 3 months ago

Body search fails in quoted-printable with trailing equals

Categories

(MailNews Core :: Search, defect)

Thunderbird 140
defect

Tracking

(Not tracked)

RESOLVED FIXED
155 Branch

People

(Reporter: francesco, Assigned: maxe)

References

Details

Attachments

(1 file, 1 external file)

Attached file test-html-qp.eml —

STR:
Load message into TB, use QuickFilter, look for word "found" in body.

Not found using TB 140 or also beta.

I came across this in the wild and boiled it down to the trailing = at the and of the message.

Please avoid using abbreviations in bug summaries (and in general) - it hurts both user and developer searching. In this case, quoted-printable is most frequently used form in bugzilla. Thanks.

Summary: Body search fails in QP with trailing equals → Body search fails in quoted-printable with trailing equals

I took a spin through "QP" https://mzl.la/454HeON - I think the first one is a duplicate of this?

You mean bug 113120? Maybe vaguely related. The message is displayed fine, however, the search just fails. Unfortunately, this particular sender always has a trailing = at the end.

The error is likely around here:
https://searchfox.org/comm-central/rev/72b8ba0761b3881d926be53f77fbf75d5a9316d5/mailnews/search/src/nsMsgSearchTerm.cpp#821

Note that this
https://searchfox.org/comm-central/rev/72b8ba0761b3881d926be53f77fbf75d5a9316d5/mailnews/search/src/nsMsgBodyHandler.cpp#694
is only called for search in PGP or S/MIME messages (since GetRelevantTextParts() is only called for those messages).

Yes, that one - I read it too quickly

See Also: → 113120
Assignee: nobody → mozilla
Status: NEW → ASSIGNED

Pushed by brendan@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/8465a67db60d
Fix body search for quoted-printable messages ending on a soft line break. r=tobyp

Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: