Closed Bug 415891 Opened 16 years ago Closed 16 years ago

Thunderbird stops searching after first non-match when searching headers

Categories

(Thunderbird :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: dorsanty, Unassigned)

Details

(Keywords: helpwanted)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b3pre) Gecko/2008020404 Minefield/3.0b3pre
Build Identifier: version 2.0.0.12pre (20080203)

Thunderbird's search stops after first match or fail when it really should continue. It seems that TB believes there's only ever one instance of a header.

I setup 'Content-Type' as an additional header that can be searched for. I can setup custom view of "Content-Type contains multipart" which finds all mails with attachments/embedded content.

What I want to be able to do is setup the custom view to be "Content-Type contains text/calendar" and so be able to make a filter for calendar events. But this fails 100% of the time as the calendar event tends to be the last embeded content.

Example of the Content-Type headers found in a typical e-mail,
Content-Type: multipart/alternative;
Content-Type: text/plain;
Content-Type: text/html;
Content-Type: text/calendar; 

Reproducible: Always

Steps to Reproduce:
1. Setup Content-Type as a new header that will be searched for
2. Look for text/html or whatever the embedded content is
3. So long as you are looking for a Content-Type that is not the first instance of Content-Type header in the mail source it will fail.
Actual Results:  
Fails on all platforms and on branch and trunk builds

Expected Results:  
It should match any mail containing that content and show the resulting mails.

While I want this for calendar filtering I suggest that it would enable a whole new world of powerful filters. Like find all html mail or find all mail with embedded content, find all word docs 'application/msword' or find all videos 'video/'. You get the idea.
Keywords: helpwanted
Version: unspecified → Trunk
I think you misunderstood the custom header option. It's only about the "main" headers, not possible headers inside the message body.

->INVALID
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.