Skip to content

inMailboxOtherThan test is inadequate #1

@ejrichards

Description

@ejrichards

The current test checks that an email is not in a mailbox, but this doesn't cover all the cases of the spec:

https://jmap.io/spec-mail.html#emailquery

inMailboxOtherThan: Id[] A list of Mailbox ids. An Email must be in at least one Mailbox not in this list to match the condition. This is to allow messages solely in trash/spam to be easily excluded from a search.

See my test case here: stalwartlabs/stalwart#2831

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions