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: [email protected]
For additional commands, e-mail: [email protected]