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-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-31Update phpdoc for local attachment and outboxDaniel Kesselberg
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
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>
2021-12-09Merge pull request #5800 from nextcloud/debug/imap-message-mapper-find-by-idsChristoph Wurst
Add debug logs to the imap message mapper findByIds
2021-12-09Add debug logs to the imap message mapper findByIdsChristoph Wurst
This can show if unexpected results are fetched. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-12-09Fix initial sync stopping prematurelyChristoph Wurst
The initial sync is broken up into chunks. These chunks are estimated because we only know the lowest and highest UID and there are likely gaps in this range. One of the last chunks might query a range that has more messages than the allowed chunk size. We slice it down. This means the actually feched max UID is lower than the theorical max UID for this chunk. If the stop condition is to stop at the theoretical max UID then we occasionally stop too early. Where we actually have to stop is the actually fetched highest UID. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-12-06Revert "Fetch LDAP provider factory on demand"Christoph Wurst
2021-12-06Fetch LDAP provider factory on demandChristoph Wurst
The provider is not injectible on Nextcloud 20. Therefore it needs some error handling to factor in the possible absence. 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-10-17Rework IspDb to use IClientDaniel Kesselberg
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2021-10-14update psalm to exclude fixed errorsAnna Larch
Signed-off-by: Anna Larch <anna@nextcloud.com>
2021-09-23Set proper type for provisioning_idDaniel Kesselberg
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2021-09-22Add parent domain to imap/smtp checkAnna Larch
Signed-off-by: Anna Larch <anna@nextcloud.com>
2021-09-17Add tags for provisioned usersAnna Larch
Signed-off-by: Anna Larch <anna@nextcloud.com>
2021-09-08Allow empty delimiterDaniel Kesselberg
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2021-08-24Create anti spam report featureAnna Larch
Signed-off-by: Anna Larch <anna@nextcloud.com>