Bogus search criteria in UID search message gotten while running filters

RESOLVED INCOMPLETE

Status

MailNews Core
Filters
RESOLVED INCOMPLETE
15 years ago
9 years ago

People

(Reporter: Bruce Feist, Unassigned)

Tracking

Trunk
x86
Windows 2000

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: closeme 2009-04-15)

Attachments

(1 attachment, 1 obsolete attachment)

(Reporter)

Description

15 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624

When I manually run my message filters, including a large one to delete spam, I
get a popup message saying "The current command did not succeed. The mail server
responded "Bogus search criteria in UID search message gotten while running
filters".  This is followed by a popup saying "Applying filter killfile failed.
 Would you like to continue applying filters?".  I click OK, and there are no
further messages, but the rest of my filters don't seem to be applied.

Reproducible: Always

Steps to Reproduce:
1.  In the menu, select Tools/Run Filters on Folder.
2.  Popup says "The current command did not succeed. The mail server responded
"Bogus search criteria in UID search message gotten while running filters".
3.  Click OK button, since there is no "Not OK" button.
4.  Popup says "Applying filter killfile failed.  Would you like to continue
applying filters?".  Popup has two buttons, "OK" and "Cancel".
5.  Click "OK" button.

Actual Results:  
Nothing -- the rest of the filters were not run.  (I can tell because other
filters should have moved mail into different folders, and that did not happen.)

Expected Results:  
It should have successfullly run my filters, including killfile, to begin with.
 If there were a real error on killfile and I told it to proceed anyway, it
should have done so.

Mail server is sendmail running on a Linux server.  Connection is secure.  If I
reorder my filters so that killfile is no longer the first one, the new first
one (also large) produces the same error.  If I move the two of them to the end,
I don't get an error at all, but still nothing happens.

Comment 1

15 years ago
could you attach an imap protocol log, thx.

http://www.mozilla.org/quality/mailnews/mail-troubleshoot.html#imap
Status: UNCONFIRMED → NEW
Ever confirmed: true
(Reporter)

Comment 2

15 years ago
Created attachment 129357 [details]
IMAP protocol log for affected user, August 7 2003

Log file was extracted from maillog on Linux server.  I reproduced the problem
this morning and extracted IMAP log records for the current date and userid to
keep the size small and the data relevant.

Comment 3

15 years ago
sorry, that kind of log is not useful for me. I need a client-side log, obtained
by following these instructions:

http://www.mozilla.org/quality/mailnews/mail-troubleshoot.html#imap
(Reporter)

Comment 4

15 years ago
Created attachment 129360 [details]
IMAP Protocol Log

Client-side IMAP protocol log, generated with NSPR_LOG_MODULES=IMAP:5 and
NSPR_LOG_FILE=c:\tmp\imap.log.	I zipped it because without doing so it was too
large to be attached.
Attachment #129357 - Attachment is obsolete: true

Comment 5

15 years ago
OK, something's really wrong in the client - can you e-mail me your
msgFilterRules.dat?

uid SEARCH UNDELETED (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR
(OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR
(OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR
(OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR
(OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR
HEADER FROM "directdealstoyou.com" HEADER FROM "freddyli
3028[2bc6008]: ReadNextLine [stream=335fc40 nb=0 needmore=1]
3028[2bc6008]: ReadNextLine [stream=335fc40 nb=42 needmore=0]
3028[2bc6008]: 3357240:192.168.1.7:S-INBOX:CreateNewLineFromSocket: 25 BAD Bogus
criteria list in UID SEARCH

3028[2bc6008]: 3357240:192.168.1.7:S-INBOX:ProcessCurrentURL: entering
3028[2bc6008]: 3357240:192.168.1.7:S-INBOX:SendData: 26 uid SEARCH UNDELETED (OR
(OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (OR (O

Comment 6

15 years ago
Mozilla doesn't follow the IMAP syntax. More precisely, it sends 
quoted chars that contain characters outside the range 0x01 - 0x7f,
forcing the IMAP servers to return a parsing error. See the syntax below:

QUOTED_CHAR     ::= <any TEXT_CHAR except quoted_specials> / "\" quoted_specials
TEXT_CHAR       ::= <any CHAR except CR and LF>
CHAR            ::= <any 7-bit US-ASCII character except NUL, 0x01 - 0x7f>

A fix to this bug;
Send literals instead. That is, command 

Mozilla: 1 search text "bogus char follows: '0x80'"CRLF
Server: 1 BAD bogus attribute...

should become:

Mozilla: 1 search text {21}CRLF
Server: +CRLF
Mozilla: bogus char follows: '0x80'CRLF

 




Comment 7

14 years ago
*** Bug 236790 has been marked as a duplicate of this bug. ***

Comment 8

14 years ago
I don't think that's the problem. I think it's a horked msgFiltersRules.dat with
a bunch of OR(OR(OR(OR terms

Comment 9

14 years ago
My msgFilterRules.dat is ~ 20k size. How can I find out, which statement causes 
the problem?  
A "Details" button would help here, as with other problems with the filter too. 
Product: MailNews → Core

Updated

10 years ago
Assignee: bienvenu → nobody
Component: Networking: IMAP → MailNews: Filters
QA Contact: grylchan → filters
(Assignee)

Updated

10 years ago
Product: Core → MailNews Core

Comment 10

9 years ago
do you still see this problem?
Whiteboard: closeme 2009-04-15
RESO INCO due to lack of response to last question. If you feel this change was made in error, please respond to this bug with your reasons why.
Status: NEW → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.