You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Tran Hong Quan (Jira)" <se...@james.apache.org> on 2022/11/22 06:52:00 UTC

[jira] [Created] (JAMES-3861) EmailDelivery push is used too much

Tran Hong Quan created JAMES-3861:
-------------------------------------

             Summary: EmailDelivery push is used too much
                 Key: JAMES-3861
                 URL: https://issues.apache.org/jira/browse/JAMES-3861
             Project: James Server
          Issue Type: Improvement
          Components: JMAP
            Reporter: Tran Hong Quan
            Assignee: Antoine Duprat


As of today, we push an EmailDelivery for each "added" event.

Yet, added event is used for copies, move, saving draft, sending email... In addition to received new emails.

We should revisit the APIs of `MessageManager::append` in order to allow passing a bit more context. This context would need to be carried other in the event system.

# Definition of Done

JMAP integration test showing that EmailDelivery` state change is reserved to receiving email...

# API proposal

Add a `isDelivery` field to the append command, defaulting to false.

Add a isDelivery field to the `Added` event, defaulting to false.

Ensure LocalDelivery sets the isDelivery to true.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org