Closed Bug 232409 Opened 21 years ago Closed 20 years ago

search messages returns all when searching for "body contains" in imap folder

Categories

(SeaMonkey :: MailNews: Message Display, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: geek, Assigned: sspitzer)

References

Details

Attachments

(3 files)

User-Agent:       
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113

Using search messages on my imap folders returns all the messages in a folder if
the search condition is BODY - CONTAINS - string.

where string is whatever you're trying to search for.

Reproducible: Always
Steps to Reproduce:
1. in an imap folder bring up the search messages dialog
2. set the search condition to body - contains - string (where string is
something to search for)
3. search

Actual Results:  
all messages in the folder appear in the found section

Expected Results:  
returned only messages whose body contained the string

i can copy the contents of the imap folder offline (to a local folder) and
seaching there works fine.
Mark,
Can you try the steps mentioned here to get log file.
http://bugzilla.mozilla.org/show_bug.cgi?id=153929#c9

Have the same problem now with
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7a) Gecko/20040105

This one is dupe of bug# 153929 I guess
*** Bug 240405 has been marked as a duplicate of this bug. ***
*** Bug 263269 has been marked as a duplicate of this bug. ***
Attached file IMAP search logfile
Hello,

I have the same problem with Thunderbird. So I tryed to build a logfile.

First I have to say, that this bug does'nt occur with any email-provider. With
the german arcor.de the imap-search works fine. The logfile was build with
gmx.net, on which the imap-search isn't working.

the testing-environment:
- one IMAP-folder with 5 e-mails
- search querry for "subject" "contains" the word "Fire"
- the right result should list 2 emails
- TB lists all 5 e-mails

regards
this would be a server bug, wouldn't it?
i can (In reply to comment #5)
> Hello,
> 
> I have the same problem with Thunderbird. So I tryed to build a logfile.
> 
> First I have to say, that this bug does'nt occur with any email-provider. With
> the german arcor.de the imap-search works fine. The logfile was build with
> gmx.net, on which the imap-search isn't working.
> 
> the testing-environment:
> - one IMAP-folder with 5 e-mails
> - search querry for "subject" "contains" the word "Fire"
> - the right result should list 2 emails
> - TB lists all 5 e-mails
> 
> regards

i have the same problems with imap and gmx. on the german thunderbird user forum
someone told about a workaraound with outlook. so it seems to be not only a
sever bug but a coincidence of server and client?
i added a logfile.

regards,
Andre
the logfile is a selextracting rar file. its password protected: 'blabla'
without the two '
see my comment above.
Product: Browser → Seamonkey
hello,
is there still someone working on this?

Hello,
i wrote a message to gmx and got the following answer. because gmx is a german
provider question and answer is in german. if someone want this to be translated
i will do it.
---------------------------------------------------
Sehr geehrter Herr Versuemer,

wir bedauern, dass die von Ihnen gewünschte Funktion zur Zeit nicht zur
Verfügung steht. 
Ihre Anregung nehmen wir gerne entgegen und leiten diese an unser
Produkt-Management weiter. 
Dieses entscheidet dann, wann und wie Ihr Vorschlag gegebenenfalls in das
Angebot von GMX integriert werden kann.


Bitte senden Sie bei Rückantworten immer den vorangegangenen Mailverkehr mit.
Weitere Informationen finden Sie auch unter:
http://faq.gmx.de/index.html

Mit freundlichen Grüßen




>> Hallo Herr Hilfert,
>> 
>> tut mir leid, wenn ich mich nicht verstaendlich genug ausgedrueckt habe.
>> 
>> ich nutze seit einiger Zeit den EMail-Client Thinderbird (von Mozilla). 
>> Im Client habe ich zwei EMail-Konten, einmal meinen GMXPro-Account ueber 
>> IMAP und einen Mail-Account(Pop3) auf meinem eigenen Server.
>> Nun gibt es bei Thunderbird die Moeglichkeit, das Postfach nach 
>> Stichworten zu durchsuchen (Rechtsklick aufs Postfach-Nachrichten 
>> durchsuchen). Das funktioniert bei meinem Pop3-Postfach wunderbar. Bei 
>> meinem GMX-IMAP bekomme ich unabhaengig vom Stichwort immer alle EMails 
>> als Ergebnis zurueck.
>> Nachdem ich mich auf Diskussionsforen herumgetrieben habe, konnte ich 
>> feststellen, dass dieses Problem offenbar nur bei GMX-Accounts auftritt. 
>>   Ich weiss aber auch, dass das mit Outlook funktionieren soll. Eine 
>> Bug-meldung bei BugZilla zu diesem Punkt ist aufgefuehrt, dort aeussert 
>> sich aber eben jemand so, als laege das Problem bei GMX.
>> 
>> Deshalb also nun die Bitte um Hilfe bei diesem Problem.
>> 
>> Vielen Dank nochmal und mit freundlichen Gruessen,
>> Andre Versuemer
----------------------------------------------------------
Hi,
same problem. Not just body search, ALL search methods return ALL messages.
Using TB0.9 on WinXP
that last log showed a search for messages whose subject is not cialis - that
would probably return most messages. Is that what your search was?
(In reply to comment #13)
> that last log showed a search for messages whose subject is not cialis - that
> would probably return most messages. Is that what your search was?

Hi David!

This log shows (at least) 2 searches:
SEARCH UNDELETED HEADER SUBJECT "cialis"
SEARCH UNDELETED NOT HEADER SUBJECT "cialis"

Both searches are ending up in the same result:
814 ... 915

AFAIK from the earlier conversation with this user, this is the complete content 
of the folder he was searching in.

I hope, I am not misunderstanding the log ;-)

Regards,
Michael
Hi,

is it solved now in thunderbird 1.0 or was it gmx? now i get an error message:
'Der aktuelle Befehl war nicht erfolgreich. Der Mail-Server antwortete: SEARCH -
unsupported argument: Body "whatever".

(means: last command failed. Mail Server said:...)

Andre
yeah, that confirms it was a server issue.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
(In reply to comment #16)
> yeah, that confirms it was a server issue.

Hi,
Im am new here.
i hope i can help to solve this probleme in sending my logfile (only the
necesary part)

1f24ae8:imap.gmx.net:S-INBOX:ProcessCurrentURL:imap://XXXXX@imap.gmx.net:143/search%3EUID%3E/INBOX%3ESEARCH%20UNDELETED%20HEADER%20SUBJECT%20%22test%22:
 = currentUrl
1928[1e9d580]: 1f24ae8:imap.gmx.net:S-INBOX:SendData: 8 uid SEARCH UNDELETED
HEADER SUBJECT "test"

1928[1e9d580]: ReadNextLine [stream=1f25c10 nb=87 needmore=0]
1928[1e9d580]: 1f24ae8:imap.gmx.net:S-INBOX:CreateNewLineFromSocket: 8 NO SEARCH
Cannot search the criterea - unsupported argument:  HEADER SUBJECT "test"

1928[1e9d580]: 1f24ae8:imap.gmx.net:S-INBOX:SendData: 9 IDLE

1928[1e9d580]: ReadNextLine [stream=1f25c10 nb=22 needmore=0]
1928[1e9d580]: 1f24ae8:imap.gmx.net:S-INBOX:CreateNewLineFromSocket: + entering
idle mode

1928[1e9d580]: 1f24ae8:imap.gmx.net:S-INBOX:SendData: DONE

1928[1e9d580]: ReadNextLine [stream=1f25c10 nb=21 needmore=0]
1928[1e9d580]: 1f24ae8:imap.gmx.net:S-INBOX:CreateNewLineFromSocket: 9 OK IDLE
completed

1928[1e9d580]: 1f24ae8:imap.gmx.net:S-INBOX:ProcessCurrentURL: entering
1928[1e9d580]:
1f24ae8:imap.gmx.net:S-INBOX:ProcessCurrentURL:imap://XXXXX@imap.gmx.net:143/select%3E/INBOX:
 = currentUrl
1928[1e9d580]: 1f24ae8:imap.gmx.net:S-INBOX:SendData: 10 noop

1928[1e9d580]: ReadNextLine [stream=1f25c10 nb=14 needmore=0]
1928[1e9d580]: 1f24ae8:imap.gmx.net:S-INBOX:CreateNewLineFromSocket: * 437 EXISTS

1928[1e9d580]: ReadNextLine [stream=1f25c10 nb=22 needmore=0]
1928[1e9d580]: 1f24ae8:imap.gmx.net:S-INBOX:CreateNewLineFromSocket: 10 OK NOOP
completed

1928[1e9d580]: 1f24ae8:imap.gmx.net:S-INBOX:SendData: 11 UID fetch 655:* (FLAGS)

1928[1e9d580]: ReadNextLine [stream=1f25c10 nb=39 needmore=0]
1928[1e9d580]: 1f24ae8:imap.gmx.net:S-INBOX:CreateNewLineFromSocket: * 437 FETCH
(FLAGS (\Recent) UID 655)

1928[1e9d580]: ReadNextLine [stream=1f25c10 nb=23 needmore=0]
1928[1e9d580]: 1f24ae8:imap.gmx.net:S-INBOX:CreateNewLineFromSocket: 11 OK FETCH
completed

1928[1e9d580]: 1f24ae8:imap.gmx.net:S-INBOX:SendData: 12 check

1928[1e9d580]: ReadNextLine [stream=1f25c10 nb=14 needmore=0]
1928[1e9d580]: 1f24ae8:imap.gmx.net:S-INBOX:CreateNewLineFromSocket: * 437 EXISTS

1928[1e9d580]: ReadNextLine [stream=1f25c10 nb=23 needmore=0]
1928[1e9d580]: 1f24ae8:imap.gmx.net:S-INBOX:CreateNewLineFromSocket: 12 OK CHECK
completed

1928[1e9d580]: 1f24ae8:imap.gmx.net:S-INBOX:SendData: 13 UID fetch 655 (UID
RFC822.SIZE FLAGS BODY.PEEK[HEADER.FIELDS (From To Cc Subject Date Message-ID
Priority X-Priority References Newsgroups In-Reply-To Content-Type)])

1928[1e9d580]: ReadNextLine [stream=1f25c10 nb=185 needmore=0]
1928[1e9d580]: 1f24ae8:imap.gmx.net:S-INBOX:CreateNewLineFromSocket: * 437 FETCH
(UID 655 RFC822.SIZE 6928 FLAGS (\Recent) BODY[HEADER.FIELDS (From To Cc Subject
Date Message-ID Priority X-Priority References Newsgroups In-Reply-To
Content-Type)] {347}

Dear all!

I also posted a separate Thunderbird bug for this (287056), as this behaviour
shows up in Thunderbird as well and Thunderbird is ment to be the main Mozilla
mail application in the future, so here is the TB Bug link:
https://bugzilla.mozilla.org/show_bug.cgi?id=287056. There is also Thunderbird
bug numer 269355 (https://bugzilla.mozilla.org/show_bug.cgi?id=269355)
describing a similar, though not identical, problem. So, I beg for forgiveness
if I cause double-reporting of bugs now...

I have a problem with IMAP on the German ISP "GMX", very much the same as the
ones reported here. I use Mozilla Thunderbird version 1.0 (20041206) on Windows
XP SP2 prof. de.

I have 2 problems:
1) naming mailboxes
2) searching mailfolders

ad 1)
GMX seems to allow only mailboxes named "Aaaaa" i.e. starting with a capital
letter then only lower case letters and spaces allowed. I.e. "Old mails" would
be a valid name whereas "old Mails" would be not. If I create a mailfolder "old
Mails" TB displays it on the IMAP account as regular folder, called "old Mails".
However, if I try to open the mailfodler, i get an error message from TB:
---
ALERT: The command did not succeed. The mail server responded: SELECT No such
mailbox - "Old mail"
--- 
remarkably, I told TB to open the mailbox "Old mail" where instead it tried to
open "old Mail".

Then I restart TB again, and it liste 2 mailboxes, one called "Old mail" and the
other "old Mail". I can use the folder "Old mail" perfectly well, the problems
with the mailfolder "old Mail" are still as described above. When I log in to
the webmail service of GMX there is only one folder, "Old mails".

If I try to delete the mailfolder "old Mail" TB does indeed delete it, but
deletes the folder "Old mail" at the very same time, including its contents!!
VERY DISAPPOINTING BEHAVIOUR.

Q: Where is the problem here?
The GMX IMAP server also only permits the creation of a primary folder
hierarchy, i.e. I can only create folders with messages, but no subfolders.


ad 2)
The "search messages" function does not work with the GMX ISP.
If I search for a message, I get the error message from TB:
---
ALERT: The current command did not succeed: The mail server responded: SEARCH
Cannot search the criteria - unsupported argument: HEADER SUBJECT "test".
--- 

again, Q: Where is the problem?


I can use other IMAP accounts from other ISPs perfectly well, folder naming and
search function and all the rest.
*** Bug 269355 has been marked as a duplicate of this bug. ***
last week or so the german GMX provider seems to have changed something with
their IMAP server, I can now search the IMAP server without problems.

If other people who posted here can reproduce this and find that the search
function works well now, this bug could be forgotten.
actually, the search in header and sender is working now. you are right. but
still search in body is not working at all.
That is right, the error message I receive is:
---
The current command did not succeed. The mail server responded: SEARCH Syntax
error - search in message body not supported.
---
Doesn't this mean that the problem is with the server, not with mozilla and that
there is nothing to do for the mozilla community?
using the imap server at work, i still get no error message and all the emails
in the current folder listed as "found".

is this the server or mozilla that's listing them all? how can i find out?
which thunderbird version is it you are using?

@Wolfgang.Sailer: yes. thats right. its a gmx issue. thats what David Bienvenu
said before. thats why the bug is marked as RESOLVED|INVALID :-)
thunderbird 1.0.2

just to check - just installed mozilla 1.7.6 and it's still doing it there as well.

i tried the steps here
http://www.mozilla.org/quality/mailnews/mail-troubleshoot.html#imap
to create a logfile detailed in a link above but got a logfile of length zero
with both thunderbird and mozilla.
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

Creator:
Created:
Updated:
Size: