Closed Bug 383352 Opened 19 years ago Closed 19 years ago

Filter on body text searches in base64 code

Categories

(Thunderbird :: Mail Window Front End, defect)

x86
Windows 2000
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 37031

People

(Reporter: spam, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4 Build Identifier: Version 2.0.0.0 (20070326) Problem: If a filter is set to watch for a specific word in a body, Thunderbird searches in base64 code of attachments, too. If the filter is used to delete mails (e.g. containing "viagra", "penis" or "poker"), mails not containing these words in text, html or attachment file content will be lost!!! E.g. a part of the base64 code may be M5DNwakcoSdpOKErEtjRFlGO/ Then a filter deleting mails containing "poker" in the body will delete this mail! The mail used a header like Content-Type: multipart/mixed; boundary="----=_NextPart_000_0048_01C7A138.174EF700" and a body containing [...] ------=_NextPart_000_0048_01C7A138.174EF700 Content-Type: application/msword; name="Randy Thierneys.doc" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="Randy Thierneys.doc" 0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAAmAAAAlRIAAAAAAAAA [...] Solution idea: Thunderbird must separate parts of mails containing text, html or attachments. The filter for body text must look - in case of text: in the whole text area - in case of html: in the content parts, but not in tag names or attributes - in case of attachments: NOTHING!!! (I don't wan't to start a discussion about parsing attachment contents, there are separate issues on this) The criterium may something like this: Content-Transfer-Encoding: base64 or Content-Type: text/plain; Content-Type: text/html; Reproducible: Always Steps to Reproduce: 1. Create a mail containing an attachment. 2. Save the mail as .eml file. 3. Take some text of the base64 encoding or change text in the base64 encoding and reimport the .eml file. 4. Create a filter to move mails, which contain the given word in the mail body. 5. Execute the filter on the folder, which contains the test mail. Actual Results: The filter will search in the base64 encoded part, too. If the filter is used to delete mails (e.g. containing "viagra", "penis" or "poker"), mails will be lost!!! Expected Results: The filter must ignore the base64 encoded part, because there may be random letter combinations, which match filter criteria.
Version: unspecified → 2.0
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.