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 "Eric Charles (JIRA)" <se...@james.apache.org> on 2012/07/27 16:24:35 UTC

[jira] [Commented] (IMAP-368) IMAP SEARCH command parentheses an error?

    [ https://issues.apache.org/jira/browse/IMAP-368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13423898#comment-13423898 ] 

Eric Charles commented on IMAP-368:
-----------------------------------

Hi,
Thx for the report. I will check this asap.
Eric
                
> IMAP SEARCH command parentheses an error?
> -----------------------------------------
>
>                 Key: IMAP-368
>                 URL: https://issues.apache.org/jira/browse/IMAP-368
>             Project: JAMES Imap
>          Issue Type: Bug
>          Components: Protocol
>    Affects Versions: 0.2.1
>            Reporter: Jeong HyunDae
>
> First of all, please understand my English ability is not good.
> I use a mail client is the Samsung GalaxyTab 10.1.
> GalaxyTab Clients can not retrieve mail.
> Android devices are all the same symptoms.
> An error occurs in the following command.
> 551 UID SEARCH (HEADER MESSAGE-ID <wy...@email.android.com>) 
> The problem seems to occur because of the parentheses.
> However, the following command is normal.
> 551 UID SEARCH (HEADER MESSAGE-ID <wy...@email.android.com> )
> DecodingException of validator occurs because the parentheses.
> -------------------------------
>     private String consumeWord(CharacterValidator validator, boolean stripParen) throws DecodingException {
>         StringBuffer atom = new StringBuffer();
>         char next = nextWordChar();
>         
>         while (!isWhitespace(next) && (stripParen == false || next != ')')) {
>             if (validator.isValid(next)) {
>                 if (stripParen == false || next != '(') {
>                     atom.append(next);
>                 }
>                 consume();
>             } else {
>                 throw new DecodingException(HumanReadableText.ILLEGAL_ARGUMENTS, "Invalid character: '" + next + "'");
>             }
>             next = nextChar();
>         }
>         return atom.toString();
>     }
> -------------------------------
> james server's IMAP SEARCH command is not there an error?
> I am wondering if a resolution to this problem is.
> Also in Android will not recognize this command. 
> 320 APPEND "Sent" (\SEEN) {912}
> "+" Responses was changed to a "+ OK"
> Android will  the normal operation.
> However, these methods do not know what the correct solution.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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