You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Norman Maurer (JIRA)" <se...@james.apache.org> on 2011/06/01 20:02:47 UTC

[jira] [Created] (IMAP-311) A SEARCH HEADERNAME "" does not use SearchQuery.headerExist(HEADERNAME)

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


[jira] [Resolved] (IMAP-311) A SEARCH HEADERNAME "" does not use SearchQuery.headerExist(HEADERNAME)

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
     [ https://issues.apache.org/jira/browse/IMAP-311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Norman Maurer resolved IMAP-311.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 0.3

fixed!

> 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
>             Fix For: 0.3
>
>
> 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