Closed Bug 89052 Opened 23 years ago Closed 23 years ago

[imap] Couldn't search headers for "PDT+"

Categories

(SeaMonkey :: MailNews: Message Display, defect)

x86
Other
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.3

People

(Reporter: selmer, Assigned: sspitzer)

References

Details

Attachments

(2 files)

7/2 03 win98

I was in a folder containing messages requesting PDT+ approvals
I used the Search menu to get to the search dialog for that folder
I attempted to search (subject contains "a=" OR subject contains "pdt+")

I got an error message "missing required argument to search header"
Removing the "+" from "pdt+" avoids the error, but that's a different search
Searching on *just* (subject contains "pdt+") works fine!
I can get the same error, but only if using the two subject text strings you
specified in order.  If I switch the a= to the second subject field (with pdt+
as first subject string), all is ok. 
Seth has been working on the Search backend previously. CC sspitzer.
i will investigate...
I tried a search for ("pdt+" OR "a=") in both orders, and on Local Folders, my
POP account and in my news account.

I never got the error.

Resolving as worksforme. If this is IMAP-only or still reproducable, feel free
to reopen.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
Håkan, please see Laurel's comment from 7/3.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
I told you, I tried both orders and it worked fine for me. Please retry with a
trunk build.
worksforme again then, i guess.
Status: REOPENED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → WORKSFORME
reopening.  this looks like it is imap specific.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
hwaara, if you want a free imap account, check out subdimension.com
Summary: Couldn't search headers for "PDT+" → [imap] Couldn't search headers for "PDT+"
we're missing a quote.

this search works:

"SEARCH UNDELETED (OR HEADER SUBJECT "pdt+" HEADER SUBJECT "a=")"

this search fails:

"SEARCH UNDELETED (OR HEADER SUBJECT "a=" HEADER SUBJECT "pdt+)"

I'll take a quick look into the fix.
Assignee: naving → sspitzer
Status: REOPENED → NEW
ok, I think I see the problem.

testing a patch.
Status: NEW → ASSIGNED
the problem was we had some old 4.x code that used to use a byte count mixed in 
with some code that used Length() on a new string type.

the goal of that code is:  if the last char is ' ', truncate so we don't end up 
with 'FOO )', we end up with 'FOO)'

I cleaned it up, please review.
r=bienvenu, looks good.
I could take this a step further and fix GenerateEncodeStr() to not return an 
int, since now it not used.

r=naving
fixed.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla0.9.3
*** Bug 92795 has been marked as a duplicate of this bug. ***
OK using aug06 commercial trunk build win98. Also tried another failure case as
mentioned in 92795. OK. Marking verified.
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
Component: MailNews: Search → MailNews: Message Display
QA Contact: laurel → search
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: