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

Benoit Tellier commented on IMAP-368:
-------------------------------------


{code:java}
SearchKey{type=TYPE_AND, date=null, size=0, value=null, seconds=-1, modSeq=-1, 
uids=null, sequences=null, keys=Optional[[SearchKey{type=TYPE_HEADER, 
date=null, size=0, 
value=<[email protected]>, seconds=-1, 
modSeq=-1, uids=null, sequences=null, keys=Optional.empty}]]}

{code}

yields

{code:java}
SearchKey{type=TYPE_AND, date=null, size=0, value=null, seconds=-1, modSeq=-1, 
uids=null, sequences=null, keys=Optional[[SearchKey{type=TYPE_HEADER, 
date=null, size=0, 
value=<[email protected]>, seconds=-1, 
modSeq=-1, uids=null, sequences=null, keys=Optional.empty}]]}
{code}

I see tests regarding parenthesis.

Closing....

> 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 
> <[email protected]>) 
> The problem seems to occur because of the parentheses.
> However, the following command is normal.
> 551 UID SEARCH (HEADER MESSAGE-ID 
> <[email protected]> )
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to