Closed Bug 1464769 Opened 6 years ago Closed 6 years ago

Can't search headers of attached messages with body search any more

Categories

(Thunderbird :: Search, defect)

52 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 421187

People

(Reporter: jcdk42, Unassigned)

Details

Attachments

(1 file)

Attached file test g2.eml
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36

Steps to reproduce:

Hello, after version on Thunderbird 52.6.0 (52.8.0 included) searching in "body" using "contains" stoped working. It was working fine in 52.5.2
I tried delete global-messages-db.sqlite and redownload IMAP folder - still same
If I downgrade to Thunderbird 52.5.2 search is working again without problem 


Data in Thunderbird are journaled email from MS Exchange - I included one of email in attachment for reference 

I suspecting that problem may be caused by some search fix in TB and mail produced by Exchange. 



I also tried searching for mail in local folder and same problem, so it is not only IMAP related.


Thunderbird 52.6.0 (portable) Windows 7 (czech), IMAP account 
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

(steps to reproduce)
I include sample email from exchange jurnaling, searching body in this email is not possible after Thunderbird 52.6.0
This is how sample message looks like
https://ibb.co/f6Mjky


Actual results:

What did you do? (steps to reproduce)	
After update, if I search "body "contains" "X-Spam-Flag: YES" I get no results
Attachment #8981082 - Attachment mime type: message/rfc822 → text/plain
I don't quite understand the report.

Yes, I actually *fixed* body search in TB 52.6 and TB 52.7:
https://www.thunderbird.net/en-US/thunderbird/52.6.0/releasenotes/
https://www.thunderbird.net/en-US/thunderbird/52.7.0/releasenotes/

The sample you supplied only has the single letter "g" in the body:
Content-Type: text/plain; charset="UTF-8"
g

Content-Type: text/html; charset="UTF-8"
<div dir="ltr">g</div>

X-Spam-Flag: YES/No

is clearly *not* in the body of the e-mail but in a header. If you found it before, it was a false positive which we finally fixed.

What you want to do is:
Right-click on folder, Search Messages, in the search criteria select "Customise" and enter your custom header.
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
Summary: Cant search body after 52.6.0 → Body search no longer returns falso positives from headers after 52.6.0
Thank you!
Now I finally understand, that my way of searching was bug:)

But I'm afraid that there is another problem - I already tried searching by custom header, but it does not work for tags with "-" in it. You can see it on screenshot bellow
I can search "TO", or "Received", but not "Authentication-Results" or X-Virus-Scanned
https://ibb.co/jdM9tJ 

Do I do it wrong? Thank you.
Status: RESOLVED → VERIFIED
Flags: needinfo?(jorgk)
(In reply to Sust from comment #2)
> Do I do it wrong? Thank you.
I don't know. I added a custom header of "X-Bugzilla-Flag-Requestee" and the messages are found.

Oh, I just saw: You want to search a header in an attached message, right?

Return-Path: Administrator@bla-systems.cz
Received: from mail.bla-systems.cz (blaa.bla.cz [192.168.1.90])
	by sluzebnicek with ESMTP
	; Mon, 21 May 2018 14:57:19 +0200
Content-Type: multipart/mixed;
	boundary="_b089549e-f5c8-4add-9f84-46989e0e6b1b_"
Subject: test g
To: bla <mail@bla-systems.cz>
From: "sender42@gmail.com" <sender42@gmail.com>
MIME-Version: 1.0
Sender: <MicrosoftExchange329e71ec88ae4615bbc36ab6ce41109e@bla-systems.cz>
Message-ID: <bbb86ee8-d0dc-435a-b345-4789bcc34722@journal.report.generator>
Date: Mon, 21 May 2018 12:57:19 +0000
X-MS-Journal-Report:
X-MS-Exchange-Parent-Message-Id:
	<CACa4sseDb-x+gc4rPKv_ekCB-HnpNkBuq3dyfmvN4_n7VD=hWQ@mail.gmail.com>
Auto-Submitted: auto-generated
X-MS-Exchange-Generated-Message-Source: Journal Agent

--_b089549e-f5c8-4add-9f84-46989e0e6b1b_
Content-Type: text/plain; charset="iso-8859-2"
Content-Transfer-Encoding: 7bit

Sender: sender42@gmail.com
Subject: test g
Message-Id: <CACa4sseDb-x+gc4rPKv_ekCB-HnpNkBuq3dyfmvN4_n7VD=hWQ@mail.gmail.com>
Recipient: mail@bla-systems.cz
Recipient: zaloha@backup-posta.local

--_b089549e-f5c8-4add-9f84-46989e0e6b1b_
Content-Type: message/rfc822  <==== Attached message starts here.

Received: from blaa.bla.cz (192.168.1.90) by blaa.bla.cz
 (192.168.1.90) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Mon, 21 May
 2018 14:57:18 +0200
Received: from F1.bla-systems.cz (192.168.1.95) by mail.bla-systems.cz
 (192.168.1.90) with Microsoft SMTP Server (TLS) id 15.0.1263.5 via Frontend
 Transport; Mon, 21 May 2018 14:57:18 +0200
Received: from localhost (localhost.localdomain [127.0.0.1])
	by F1.bla-systems.cz (Postfix) with ESMTP id 40qJhZ0dDxz4wQq
	for <mail@bla-systems.cz>; Mon, 21 May 2018 14:57:18 +0200 (CEST)
X-Virus-Scanned: Scrollout F1 at bla-systems.cz
X-Spam-Flag: NO  <===== Here is the header you want to find.

That's not a feature we support. But yes, that might have shown up as a body hit before the bug was fixed.
Flags: needinfo?(jorgk)
Summary: Body search no longer returns falso positives from headers after 52.6.0 → Can't search headers of attached messages with body search any more
Hello, yes - I want to search in "journaled" message, in attachment. I previously thought that is message body (because I can see content in TB automatically and I could search.)

I'm using filters and saved search to categorize messages for quick message trace.

So my only option is not to upgrade Thunderbird, until I find way to search in attachment, is that right ?
If I look at it retrospectively, the *fix* actually removed feature of searching in attached message in Thunderbird :-)

Thanks for your time
Whatever we change, even if we fix a bug, someone complains :-(

Strictly speaking, an *attached* message is an *attachment* and should be searchable at all. However, traditionally, these messages are shown inline and so we allow searching their bodies.

Now for attached message you want to re-establish searching in the headers of the attached message as if they were part of the body :-(

It would make more sense to enhance the search to be able to search attachments, so of a certain type, like images, or by name. I think that's planned for the distant future. Then it would make sense searching headers of attachments as well.
It's something like bug 421187 or bug 439143.
Status: VERIFIED → RESOLVED
Closed: 6 years ago6 years ago
Resolution: INVALID → DUPLICATE
I don't want to complain:) Thanks to you, I finally understand difficulty of my request.

Have a nice rest of you day and thanks again for your help!
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: