Fix the error mail.QUERY PARSE ERROR parserErr, STR, "Encountered "EOF"

Fix the error mail.QUERY PARSE ERROR parserErr, STR, "Encountered "<EOF>"

   KB 21951        Last updated on 2015-07-11  

(0 votes)


Fix an error when a user is login into the Web Client obtaining a popup error with the next message:

Kb-fix error-search.png

In the mailbox.log you will find the next information:

2015-05-07 09:28:25,937 INFO  [qtp509886383-3550:https://YOURIP:8443/ser
vice/soap/SearchRequest] [name=THEEMAILADDRESS@OFTHE.USER;mid=31;ip=CLIENTIP;u
a=ZimbraWebClient - GC42 (Mac)/8.6.0_GA_1153;] SoapEngine - handler exception
com.zimbra.cs.mailbox.MailServiceException: Couldn't parse query: in:
Code:mail.QUERY_PARSE_ERROR Arg:(curTok, STR, "in:") Arg:(colNo, NUM, "1") Arg:(parserErr, STR, "Encountered "<EOF>" at line 1, column 3.
Was expecting one of:
    "(" ...
    <TERM> ...
    <QUOTED_TERM> ...

Caused by: com.zimbra.cs.index.query.parser.ParseException: Encountered "<EOF>" at line 1, column 3.
Was expecting one of:
    "(" ...
    <TERM> ...
    <QUOTED_TERM> ...
        at com.zimbra.cs.index.query.parser.Parser.generateParseException(
        at com.zimbra.cs.index.query.parser.Parser.jj_consume_token(
        at com.zimbra.cs.index.query.parser.Parser.TextTerm(
        at com.zimbra.cs.index.query.parser.Parser.TextClause(
        at com.zimbra.cs.index.query.parser.Parser.Clause(
        at com.zimbra.cs.index.query.parser.Parser.Query(
        at com.zimbra.cs.index.query.parser.Parser.parse(
        at com.zimbra.cs.index.query.parser.QueryParser.parse(
        ... 56 more


This is a common mistake that any user in the Web Client can have, if the users change the Search path for an invalid value, this wrong configuration will generate this bug, for example: Under Preferences > Mail > Displaying messages > Default Mail Search

Kb-fix error-search-002.png

You need to remove the value and restore it for in:inbox, or just keep it clear, and will take the COS value:

Kb-fix error-search-003.png

Additional Content

  • For detailed explanations of and corrections for the mistakes listed above, please refer to the Tips & Tricks blog.

Verified Against: Zimbra Collaboration 8.6, 8.5, 8.0 Date Created: 05/07/2015
Article ID:,_STR,_%22Encountered_%22EOF%22 Date Modified: 2015-07-11

Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Wiki/KB reviewed by Jorge SME2 Copyeditor Last edit by Jorge de la Cruz
Jump to: navigation, search