Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/Db
AgeCommit message (Collapse)Author
2022-08-30Catch invalid UTF-8 during message preview text insertionChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-08-11Show message preview in envelope listChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-08-09Store message (HTML) text preview in db cacheChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-07-18Reduce memory footprint of loading thread dataChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-07-01Add support for XOAUTH2Christoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-06-15Merge pull request #5981 from nextcloud/fix/handle-null-threadAnna
Handle empty thread root id
2022-06-14Handle empty thread root idAnna Larch
Signed-off-by: Anna Larch <anna@nextcloud.com>
2022-06-13Work around breaking server change and QB expressionsChristoph Wurst
Expressions are now "query function" objects instead of strings. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-06-09Better signature detection: always store the HTML version for the CKeditor body.julia.kirschenheuter
Adapt composer body frontend to new migration. Change migration editor_body to text. Fix composerData.editorBody for Composer. Handle input event on editor plain text and editor rich text in the same way. Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> fixup! fix editorBody if it is null Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> fixup! migration was addad Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> Handle input event on editor plain text and editor rich text in the same way Remove appendSignature = true from editorRich(Plain)InputTextReady, because it is not necessary Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> fixup! Handle input event on editor plain text and editor rich text in the same way Remove appendSignature = true from editorRich(Plain)InputTextReady, because it is not necessary Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> fixup! Handle input event on editor plain text and editor rich text in the same way Remove appendSignature = true from editorRich(Plain)InputTextReady, because it is not necessary Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> fixup! Change migration editor_body to text Fix composerData.editorBody for Composer Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> fixup! set editorBody back Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> fixup! migration Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> fixup! version info.xml Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> fixup! Better signature detection: always store the HTML version for the CKeditor body. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> fixup! Better signature detection: always store the HTML version for the CKeditor body. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> Better signature detection: always store the HTML version for the CKeditor body. Adapt composer body frontend to new migration. Change migration editor_body to text. Fix composerData.editorBody for Composer. Handle input event on editor plain text and editor rich text in the same way. Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> fixup! fix editorBody if it is null Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> fixup! migration was addad Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> Handle input event on editor plain text and editor rich text in the same way Remove appendSignature = true from editorRich(Plain)InputTextReady, because it is not necessary Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> fixup! Handle input event on editor plain text and editor rich text in the same way Remove appendSignature = true from editorRich(Plain)InputTextReady, because it is not necessary Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> fixup! Handle input event on editor plain text and editor rich text in the same way Remove appendSignature = true from editorRich(Plain)InputTextReady, because it is not necessary Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> fixup! Change migration editor_body to text Fix composerData.editorBody for Composer Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> fixup! set editorBody back Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> fixup! migration Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> fixup! version info.xml Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> fixup! Better signature detection: always store the HTML version for the CKeditor body. Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
2022-06-07Fix sending erroneous message repeatedlyChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-05-31Send oldest outbox message firstChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-05-31Update phpdoc for local attachment and outboxDaniel Kesselberg
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2022-05-23Add PHP8.1 supportChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-05-23Prevent causal read for outbox message and recipient insertsChristoph Wurst
The message and the recipients are inserted in one transaction but the recipients are read another time outside a transaction. Read-write split database clusters might not be in full sync mode and then reading the recipients gives partial or no results. The insert will assign the primary key value to the recipient entities. Therefore we can skip reading the data. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-05-19Merge pull request #6495 from nextcloud/fix/lost-outbox-attachmentsAnna
Fix attachment loss during outbox message update
2022-05-18Use workaround for boolean and ocibug/noid/is-html-null-ociDaniel Kesselberg
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2022-05-18Fix attachment loss during outbox message updatefix/lost-outbox-attachmentsChristoph Wurst
Local messages had no `type` and AttachmentService::handleAttachments silently ignored them. Afterwards OutboxService::updateMessage saw an empty array of attachments and deleted the previous attachment(s). Now local attachments have a type, the outbox update no longer discards them and if we see an attachment without a type the process fails hard. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-05-17Use ICompositeExpression for self join to properly encode columnsbug/noid/self-join-ociDaniel Kesselberg
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2022-05-16Always serialize outbox message recipients into arraysChristoph Wurst
array_filter keeps the index of array elements prior to the filtering. So if you have a message with one *to* and one *cc* values, the *to* will have index 0 and *cc* has 1. json_encode will later consider the former as a simple PHP array and map it to a json array. Since the *cc* value has a non-0 index for its first element, it would convert the value to a json object and use the 1 index as key. By running the values through array_value we can re-index all recipient arrays before they run through json_encode. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-05-12Merge pull request #6339 from nextcloud/fix/cut-long-preview-textChristoph Wurst
Cut long preview text into database column size
2022-05-11Merge pull request #6403 from ↵Anna
nextcloud/fix/db-message-mapper-get-id-for-uid-close-cursor Close cursor in \OCA\Mail\Db\MessageMapper::getIdForUid
2022-05-10Delete unused \OCA\Mail\Db\MessageMapper::getTagschore/delete-unused-db-message-mapper-get-tagsChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-05-10Close cursor in \OCA\Mail\Db\MessageMapper::getIdForUidfix/db-message-mapper-get-id-for-uid-close-cursorChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-05-02Cut long preview text into database column sizefix/cut-long-preview-textChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-04-28Make sure the account provisioning ID is an integerChristoph Wurst
If the database driver doesn't automagically cast the field to an int, Nextcloud's entity mapper will take care of this. Otherwise the field might be represented as string. This leads to an wrong change detection when provisioned accounts are updated. The assumption was that if the entity has no changes, we save the update. Due to the type mispatch, there was still one updated field. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-04-13Fix message attachments not sendingAnna Larch
Signed-off-by: Anna Larch <anna@nextcloud.com>
2022-04-08Add undo sending for new messagesgreta
Co-Authored-By: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: greta <gretadoci@gmail.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-04-07Fix outbox API from/to/cc/bcc propertiesChristoph Wurst
They are expected as four properties but were normalized into one array. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-04-07Add a background worker job that flushes the outboxChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-04-07Add outbox backend implementationAnna Larch
Co-Authored-By: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: Anna Larch <anna@nextcloud.com>
2022-03-18DB for outboxAnna Larch
Signed-off-by: Anna Larch <anna@nextcloud.com>
2022-02-23Make sure array_merge has at least one argument if DB returns no resultsThomas Citharel
Closes #6047 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-01-14Fix findNewIds() not aggregating resultsRichard Steinmetz
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2022-01-14Revert "Add more logging to IMAP to DB conversion"Anna Larch
This reverts commit d305f6bbe4484343beefacd6d620432d795c150f.
2022-01-14Add more logging to IMAP to DB conversionfix/add-logging-pt-2Anna Larch
Signed-off-by: Anna Larch <anna@nextcloud.com>
2022-01-03Merge pull request #5883 from nextcloud/fix/set-bccAnna Larch
Set BCC for email recipients query
2021-12-21Chunk the recipients queryAnna Larch
Signed-off-by: Anna Larch <anna@nextcloud.com>
2021-12-20Set BCC for email recipients queryAnna Larch
Signed-off-by: Anna Larch <anna@nextcloud.com>
2021-12-20Fix mark as spam displaygreta
Signed-off-by: greta <gretadoci@gmail.com>
2021-12-16Use Parameters instead of Named Paramaeters for chunked queriesAnna Larch
Signed-off-by: Anna Larch <anna@nextcloud.com>
2021-12-13Add repair step to fix reply tos that have <> as their contentAnna Larch
Signed-off-by: Anna Larch <anna@nextcloud.com>
2021-12-10Check for empty string in message id and reply toAnna Larch
Signed-off-by: Anna Larch <anna@nextcloud.com>
2021-12-09Merge pull request #5825 from nextcloud/refactor/psalm-autofix-param-typesChristoph Wurst
Add Psalm-generated param types
2021-12-09Add Psalm-generated param typesChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-12-09Add Psalm-generated return typesChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-12-09Fix MessageMapper mailbox_id type to be intChristoph Wurst
Values and comparisons are strings by default. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-12-02(Re)wrap message ID in '<>' brackets before inserting in the dbAnna Larch
Signed-off-by: Anna Larch <anna@nextcloud.com>
2021-11-10Update to Nextcloud coding standard v1Christoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-09-23Set proper type for provisioning_idDaniel Kesselberg
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2021-09-08Allow empty delimiterDaniel Kesselberg
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>