Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-2385

$Draft checks should rely on JMAP flags view

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: JMAP
    • Labels:
      None

      Description

      When moving a message to outbox (aka sending), SetMessageUpdate performs a check: "Is the message marked with $Draft"?

      Due to possible multiple mailbox contexts, we have to combine the flags together to answer that question. Nowadays, SetMessageUpdate perform custom logic, not related to other JMAP views and components.

      This makes code fragile: If keyword combination is changed elsewhere (eg GetMessages) then I might not be able to move some Draft messages to Outbox (because I might forgot to change the SetMessageUpdate).

      We need to remove that coupling.

      Keyword reduction in SetMessageUpdate needs to rely on KeywordsCombiner

        Attachments

          Activity

            People

            • Assignee:
              aduprat Antoine Duprat
              Reporter:
              btellier Benoit Tellier
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: