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: [email protected]
For additional commands, e-mail: [email protected]