GNOME Bugzilla – Bug 343316
filtering on "specific header" using "is" requires unexpected whitespace in string to match
Last modified: 2006-06-08 13:47:14 UTC
Please describe the problem: I would like to filter emails based on this header: X-Bugzilla-Product: Firefox I set the filter up as: [Specific header] [X-Bugzilla-Product] [is] [Firefox] but it didn't match. After trying various things (like including the ':' in the header name) I found that what I had to do to make it work is: [Specific header] [X-Bugzilla-Product] [is] [ Firefox] ie. with a space before the word 'Firefox'. The header in the message is exactly as pasted above. That is copied from the source of the email. It is a raw header. It is also how it is displayed in evolution's preview panel when all headers are displayed. It is a single space. Steps to reproduce: 1. send an email to yourself with subject "test" 2. create a filter on [Specific header] [Subject] [is] [test] moving the message to a different folder 3. use control-y to run the filter on the message 4. notice the filter doesn't trigger 5. edit the filter to be [Specific header] [Subject] [is] [ test] 6. use control-y to run the filter again 7. notice the filter works now that there's an extra space before 'test' Actual results: Expected results: Does this happen every time? yes Other information:
you are asking for an exact match, that's what "is" is. If you don't want an exact match, use "contains"
I used evolution to create the email. I told it to use subject "test". I used evolution to filter the email. I told it to filter on subject "test". It doesn't filter. Either the email was created with the wrong subject, or the filter isn't detecting the subject correctly, but I set the subject to the same value I'm matching on, and it doesn't match. How can that be correct behaviour?
I'm also curious about how the behaviour described in comment 2 can be considered correct. Would re-open if I could to get a reply, but I can't...