TF-1718 Implement unsubscribeMail on Jmap server

Signed-off-by: dab246 <tdvu@linagora.com>
(cherry picked from commit 0f61a97aab513cda75c65e3c92ebcf8f6290b6ec)
This commit is contained in:
dab246
2023-11-16 12:48:38 +07:00
committed by Dat Vu
parent 4d8c7dc52e
commit a6ecaf321d
18 changed files with 169 additions and 36 deletions
@@ -21,6 +21,7 @@ class ComposerArguments extends RouterArguments {
final String? body;
final MessageIdsHeaderValue? messageId;
final MessageIdsHeaderValue? references;
final EmailId? previousEmailId;
ComposerArguments({
this.emailActionType = EmailActionType.compose,
@@ -35,6 +36,7 @@ class ComposerArguments extends RouterArguments {
this.body,
this.messageId,
this.references,
this.previousEmailId,
});
factory ComposerArguments.fromSendingEmail(SendingEmail sendingEmail) =>
@@ -139,12 +141,18 @@ class ComposerArguments extends RouterArguments {
? SendingEmailActionType.edit
: SendingEmailActionType.create;
factory ComposerArguments.fromUnsubscribeMailtoLink({EmailAddress? emailAddress, String? subject, String? body}) =>
factory ComposerArguments.fromUnsubscribeMailtoLink({
EmailAddress? emailAddress,
String? subject,
String? body,
EmailId? previousEmailId
}) =>
ComposerArguments(
emailActionType: EmailActionType.composeFromUnsubscribeMailtoLink,
emailAddress: emailAddress,
subject: subject,
body: body,
previousEmailId: previousEmailId,
);