Skip to content

type::Fetch flags ambiguity  #98

Description

@felinira

The types::Fetch struct allows to iterate over flags no matter whether the field is actually returned by the server. It does not distinguish between the case of the fetch response not containing any flag updates and the message not having any flags. This is an issue for unsolicited fetch responses, as they might or might not contain any flag updates, leading to ambiguity.

Example: FETCH response with no flags set:
12 FETCH (FLAGS () UID 20)

Example: FETCH response with other data:
12 FETCH (UID 20)

There currently is no way to distinguish these two types of fetch responses via public API, right?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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