diff options
author | Silvio Zimmer <silvio.zimmer@die-kinderwelt.com> | 2021-04-21 13:45:47 +0300 |
---|---|---|
committer | Silvio Zimmer <silvio.zimmer@die-kinderwelt.com> | 2021-04-21 13:45:47 +0300 |
commit | 3e8edcf91acd7ccbff6e4fa8fd81d1f67a3955a3 (patch) | |
tree | 3a62db28114044c5869c45aeaae6cd71414b2eab /lib/Controller | |
parent | 513b5e38b539e0f16f4cdbe27d91be2d52c60290 (diff) |
add option to place signature above quoted text
Signed-off-by: Silvio Zimmer <silvio.zimmer@die-kinderwelt.com>
Diffstat (limited to 'lib/Controller')
-rw-r--r-- | lib/Controller/AccountsController.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/Controller/AccountsController.php b/lib/Controller/AccountsController.php index 607f543ab..ed90346a1 100644 --- a/lib/Controller/AccountsController.php +++ b/lib/Controller/AccountsController.php @@ -234,6 +234,10 @@ class AccountsController extends Controller { * @param string|null $editorMode * @param int|null $order * @param bool|null $showSubscribedOnly + * @param int|null $draftsMailboxId + * @param int|null $sentMailboxId + * @param int|null $trashMailboxId + * @param bool|null $signatureAboveQuote * * @return JSONResponse * @@ -245,7 +249,8 @@ class AccountsController extends Controller { bool $showSubscribedOnly = null, int $draftsMailboxId = null, int $sentMailboxId = null, - int $trashMailboxId = null): JSONResponse { + int $trashMailboxId = null, + bool $signatureAboveQuote = null): JSONResponse { $account = $this->accountService->find($this->currentUserId, $id); $dbAccount = $account->getMailAccount(); @@ -267,6 +272,9 @@ class AccountsController extends Controller { if ($trashMailboxId !== null) { $dbAccount->setTrashMailboxId($trashMailboxId); } + if ($signatureAboveQuote !== null) { + $dbAccount->setSignatureAboveQuote($signatureAboveQuote); + } return new JSONResponse( $this->accountService->save($dbAccount)->toJson() ); |