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/tests
AgeCommit message (Collapse)Author
2022-08-09Integration test resetting message structure analyzationChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-08-09Merge pull request #6950 from nextcloud/enh/6363/download-raw-messageRichard Steinmetz
Add envelope action links to download whole message
2022-08-09Add envelope action links to download whole messageRichard Steinmetz
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2022-08-04Ensure message is availableDaniel Kesselberg
runInitialSync and Horde_Imap_Client_Cache_Backend_Null may return uids for non existing messages. For example: 3 messages UID 4, UID 8, UID 12 Range to request is 4:12 and should return 3 messages. Sometimes a list of messages like UID 4, UID 5, UID 6, UID 7, UID 8, UID 9, UID 10, UID 11 and UID 12. However valid information are only there for UID 4, UID 8 and UID 12. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2022-07-15Do not chunk changed/vanished UIDS with QRESYNCChristoph Wurst
QRESYNC doesn't need the known UIDs as input. In fact it will ignore the option. As a result the sync will already give an efficient diff of what really changed. If we still chunk the call it just means that we will do the exact same operation n times. E.g. on a 600k messages mailbox the same sync operations is run 60 times. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-07-07Split auto config and account creationChristoph 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-13Remove failing avatar integration testChristoph Wurst
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-07Add attachment objects on message forwardbug/6064/frontend-forward-attachmentsDaniel Kesselberg
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2022-06-07Fix sending erroneous message repeatedlyChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-05-31Merge pull request #6593 from nextcloud/fix/outbox-address-collectionDaniel
Fix collecting addresses in the background
2022-05-31Update phpdoc for local attachment and outboxDaniel Kesselberg
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2022-05-31Fix collecting addresses in the backgroundChristoph Wurst
Nextcloud can inject the userId but only for web processes. Now that messages are sent also in the background and not just from a web request, the user ID can be null and make the address collection log an exception. Following the pattern that user ID should only be injected into a controller, the user ID is now passed as argument of the collector, making it suitable for background jobs too. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-05-25Use UID ranges for IMAP fetch operations during syncChristoph Wurst
This does not show any measurable performance improvement but precents the issue that the IMAP command can be too long for some IMAP servers otherwise. Ref https://github.com/nextcloud/mail/commit/e22742731adc1c1c03c394029948c7fa67e31b74 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
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-19Drop dead message sending codeChristoph Wurst
This code was used before the outbox. Now it's dead. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-05-17Fix sending messages to groupsfix/sending-messages-to-groupsChristoph Wurst
Groups were expanded in the accounts controller. Since moving over to the outbox logic this feature was missing and internal group identifiers were passed to SMTP. With this patch groups are expanded again just before a message is sent. This means the group memberships are read as late as possible and editing an outbox message looks like the original message because members have not been expanded there yet. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-05-12Merge pull request #5944 from ↵Anna
nextcloud/fix/take-sso-into-consideration-when-provisioning Consider passwordless signins when provisioning accounts
2022-05-12Consider passwordless signings when provisioningAnna Larch
Signed-off-by: Anna Larch <anna@nextcloud.com>
2022-05-12Create new indices,Anna Larch
change columnst to bigint, create named foreign keys Signed-off-by: Anna Larch <anna@nextcloud.com>
2022-05-12Only print debug logs at debug verbosityChristoph Wurst
Ref https://symfony.com/doc/current/console/verbosity.html Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-05-12Add more detailed performance logging to occ syncChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-05-09Share Horde_Client between sync and perflags queryenhancement/remove-duplicate-loginAnna Larch
Signed-off-by: Anna Larch <anna@nextcloud.com>
2022-04-28Disable scheduled sending if ajax cron is usedRichard Steinmetz
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2022-04-28Revert "Check account for currentness before reprovisioning it"Anna Larch
This reverts commit 7000208236c2c0421709115e9c2a7fc0509cef0d.
2022-04-28Check account for currentness before reprovisioning itAnna Larch
Signed-off-by: Anna Larch <anna@nextcloud.com>
2022-04-08Merge pull request #6190 from nextcloud/feature/outboxChristoph Wurst
Add local outbox
2022-04-08Replace mapper with outbox service for initial statefix/initial-state-from-serviceAnna Larch
Signed-off-by: Anna Larch <anna@nextcloud.com>
2022-04-07Merge pull request #5976 from pravussum/fix-account-sync-error-in-message-mapperChristoph Wurst
Fix message account sync error if uidCandidates list is empty
2022-04-07Add a background worker job that flushes the outboxChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-04-07Fix message account sync error if uidCandites list is empty after filteringpravussum
Signed-off-by: pravussum <pravussum@users.noreply.github.com>
2022-04-07Adjust phpunit config in mainupdate-main-phpunit-configJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
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-04-04fix testsAnna Larch
Signed-off-by: Anna Larch <anna@nextcloud.com>
2022-04-04Merge remote-tracking branch 'origin/main' into chore/update-feature-outbox-IIIChristoph Wurst
2022-04-04Handle IMAP disconnects more explicitlyChristoph Wurst
This changes the IMAP client usages to be used as a *resource* that is freed after finished use. Previously we just memoized connections to the same account to lower the number of connections, but that has still shown to cause too many open connections during tests but possibly also in production. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-04-01Improve account setup error reportingChristoph Wurst
Co-authored-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-03-25Merge remote-tracking branch 'origin/main' into chore/update-feature-outbox-IIChristoph Wurst
2022-03-25Fix outbox PHP unit testsChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-03-21Add anti abuse detectionChristoph Wurst
* Trigger alert for number of recipients of a single message * Trigger alert for number of messages per time period (15m, 1h, 1d) Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-03-18DB for outboxAnna Larch
Signed-off-by: Anna Larch <anna@nextcloud.com>
2022-02-15Revert "Remove Jans test (for now)"Anna Larch
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2022-01-18Render full links in plain text bodiesRichard Steinmetz
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2021-12-20Fix mark as spam displaygreta
Signed-off-by: greta <gretadoci@gmail.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>