Skip to content

Invalid Literal- support #174

@tolikbotov

Description

@tolikbotov

Library version:
5.0.14
Java mail version:
"com.sun.mail" % "javax.mail" % "1.6.2"

Hello. We have an IMAP server with capabilities:

CAPABILITY IMAP4rev1 CHILDREN ENABLE ID IDLE LIST-EXTENDED LIST-STATUS LITERAL- MOVE NAMESPACE QUOTA SASL-IR SORT SPECIAL-USE THREAD≈ORDEREDSUBJECT UIDPLUS UNSELECT WITHIN AUTH≈LOGIN AUTH≈PLAIN

When we want to send the UID SEARCH command with Literal.
It sends as:

UID SEARCH OR OR OR HEADER Message-ID <id1> HEADER Message-ID <id2> HEADER Message-ID {59}
<id3_size_of_59>
 HEADER Message-ID <id4>

Server sees {59} and responds with CONTINUE.

Library throws failureType≈OPERATION_NOT_SUPPORTED_FOR_COMMAND

My opinion, library should handle somehow such situation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions