Closed Bug 79767 Opened 24 years ago Closed 20 years ago

IMAP SEARCH commands include HEADER unnecessarily

Categories

(MailNews Core :: Networking: IMAP, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.1alpha

People

(Reporter: roc, Assigned: roc)

Details

(Keywords: fixed1.8.1, perf)

Attachments

(1 file, 1 obsolete file)

The HEADER search term should only be used to search headers that are not already defined as searchable terms in IMAP. In other words, when searching for SUBJECT, TO, CC, SENDER, etc, HEADER should not be included. When HEADER is included, Cyrus imapd (at least) does a very expensive search through the texts of the messages; without HEADER it searches through its cache and performs the search much much more quickly.
I wouldn't feel 100% comfortable committing that patch until we have a clue why those HEADERs were being sent in the first place (or we verify that there are no broken servers around that require it for some reason).
QA Contact: esther → laurel
should we try to get review or is this an enhancement...?
It's a performance issue mainly.
Keywords: perf
Comment on attachment 33713 [details] [diff] [review] Proposed patch this patch looks good to me, from reading the rfc - sorry I forgot to review it.
Attachment #33713 - Flags: review+
I'll take this over so I can track it :-). Who's a good super reviewer for this area?
Assignee: bienvenu → roc+moz
Priority: -- → P3
Target Milestone: --- → mozilla1.1alpha
mscott or sspitzer, it doesn't really matter.
Attached patch fresh patchSplinter Review
The old patch was somewhat rotten. This patch is up to date and the code is a bit simpler. It only prepends HEADER for the arbitaryHeader terms.
Attachment #33713 - Attachment is obsolete: true
Product: MailNews → Core
hmm, updated patch was never set for review.
Attachment #85883 - Flags: superreview+
Attachment #85883 - Flags: review+
Wayne, does this bug still matter to you, and can you confirm that the patch still fixes the issue? If so then we can send this forward for approval.
checked into trunk
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
this needs to be landed on the 1.8.1 branch to fix bug 344290
Keywords: fixed1.8.1
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: