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 "Benoit Tellier (Jira)" <se...@james.apache.org> on 2021/09/06 05:49:00 UTC

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

     [ https://issues.apache.org/jira/browse/IMAP-368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benoit Tellier closed IMAP-368.
-------------------------------
    Resolution: Cannot Reproduce

> 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
>            Priority: Major
>
> 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 was sent by Atlassian Jira
(v8.3.4#803005)

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