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 "François-Denis Gonthier (JIRA)" <se...@james.apache.org> on 2010/09/12 22:09:32 UTC

[jira] Created: (IMAP-210) MailboxQuery ignore namespace

MailboxQuery ignore namespace
-----------------------------

                 Key: IMAP-210
                 URL: https://issues.apache.org/jira/browse/IMAP-210
             Project: JAMES Imap
          Issue Type: Bug
         Environment: Linux, JDK 1.6
            Reporter: François-Denis Gonthier


MailboxQuery doesn't pay any attention to namespace of the mailbox it is based on. For example, Mozilla Thunderbird might to mailbox search with expressions like #private.%. That expression is passed directly to the isExpressionMatch method of the MailboxQuery class. This has obviously incorrect results.

Arguments to the isExpressionMatch method should be parsed to separate the namespace from the mailbox name or isExpressionMatch should do the parsing itself. In that case the argument name should be renamed to something like 'searchExpression' instead of 'name' which doesn't convey the right meaning.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (IMAP-210) MailboxQuery ignore namespace

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/IMAP-210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12913113#action_12913113 ] 

Norman Maurer commented on IMAP-210:
------------------------------------

Hi,

I had a look at the issue. Its really a pita to get this fixed. I will try to come up with a solution for it the next days. But its harder as it seems on the first look

> MailboxQuery ignore namespace
> -----------------------------
>
>                 Key: IMAP-210
>                 URL: https://issues.apache.org/jira/browse/IMAP-210
>             Project: JAMES Imap
>          Issue Type: Bug
>         Environment: Linux, JDK 1.6
>            Reporter: François-Denis Gonthier
>            Assignee: Norman Maurer
>             Fix For: 0.2
>
>
> MailboxQuery doesn't pay any attention to namespace of the mailbox it is based on. For example, Mozilla Thunderbird might to mailbox search with expressions like #private.%. That expression is passed directly to the isExpressionMatch method of the MailboxQuery class. This has obviously incorrect results.
> Arguments to the isExpressionMatch method should be parsed to separate the namespace from the mailbox name or isExpressionMatch should do the parsing itself. In that case the argument name should be renamed to something like 'searchExpression' instead of 'name' which doesn't convey the right meaning.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (IMAP-210) MailboxQuery ignore namespace

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

Norman Maurer updated IMAP-210:
-------------------------------

    Fix Version/s: 0.2

> MailboxQuery ignore namespace
> -----------------------------
>
>                 Key: IMAP-210
>                 URL: https://issues.apache.org/jira/browse/IMAP-210
>             Project: JAMES Imap
>          Issue Type: Bug
>         Environment: Linux, JDK 1.6
>            Reporter: François-Denis Gonthier
>            Assignee: Norman Maurer
>             Fix For: 0.2
>
>
> MailboxQuery doesn't pay any attention to namespace of the mailbox it is based on. For example, Mozilla Thunderbird might to mailbox search with expressions like #private.%. That expression is passed directly to the isExpressionMatch method of the MailboxQuery class. This has obviously incorrect results.
> Arguments to the isExpressionMatch method should be parsed to separate the namespace from the mailbox name or isExpressionMatch should do the parsing itself. In that case the argument name should be renamed to something like 'searchExpression' instead of 'name' which doesn't convey the right meaning.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Assigned: (IMAP-210) MailboxQuery ignore namespace

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

Norman Maurer reassigned IMAP-210:
----------------------------------

    Assignee: Norman Maurer

> MailboxQuery ignore namespace
> -----------------------------
>
>                 Key: IMAP-210
>                 URL: https://issues.apache.org/jira/browse/IMAP-210
>             Project: JAMES Imap
>          Issue Type: Bug
>         Environment: Linux, JDK 1.6
>            Reporter: François-Denis Gonthier
>            Assignee: Norman Maurer
>
> MailboxQuery doesn't pay any attention to namespace of the mailbox it is based on. For example, Mozilla Thunderbird might to mailbox search with expressions like #private.%. That expression is passed directly to the isExpressionMatch method of the MailboxQuery class. This has obviously incorrect results.
> Arguments to the isExpressionMatch method should be parsed to separate the namespace from the mailbox name or isExpressionMatch should do the parsing itself. In that case the argument name should be renamed to something like 'searchExpression' instead of 'name' which doesn't convey the right meaning.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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