james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Norman Maurer (JIRA)" <server-...@james.apache.org>
Subject [jira] [Created] (IMAP-311) A SEARCH HEADERNAME "" does not use SearchQuery.headerExist(HEADERNAME)
Date Wed, 01 Jun 2011 18:02:47 GMT
A SEARCH HEADERNAME "" does not use SearchQuery.headerExist(HEADERNAME)

                 Key: IMAP-311
                 URL: https://issues.apache.org/jira/browse/IMAP-311
             Project: JAMES Imap
          Issue Type: Bug
            Reporter: Norman Maurer
            Assignee: Norman Maurer

If you issue the following command :

A SEARCH Subject "" 

then it try to find a Subject field which contains "". The correct thing would be to check
if a header with the name Subject exists.

See RFC3501:

      HEADER <field-name> <string>
         Messages that have a header with the specified field-name (as
         defined in [RFC-2822]) and that contains the specified string
         in the text of the header (what comes after the colon).  If the
         string to search is zero-length, this matches all messages that
         have a header line with the specified field-name regardless of
         the contents.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org

View raw message