mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
Email that comes back is handled in WeKan instead of landing in the administrator's own inbox. Admin Panel -> E-mail -> Bounces: hard bounces (a mistyped invited address), soft bounces, automatic replies and spam complaints, each with actions done after a count - list it, stop emailing the address, tell who invited it, delete the invitation, ignore - as listmonk and Discourse do it, and the list of addresses that bounced, which an admin clears to email them again. Amazon SES Bounce and Complaint notifications and mail SES receives arrive through SNS at /api/inbound-email/ses, signature-checked against Amazon's certificate and accepted only from the topics the Admin Panel lists. Delivery status notifications and out-of-office replies arriving by IMAP, a provider webhook or a Sandstorm grain are bounces too, never cards. Admin Panel -> Problems -> Email shows what went wrong sending or receiving: a send the mail server refused or could not reach, an IMAP mailbox that cannot be read (never with its password), an unreadable email, an email for a board that no longer takes email. Attempts stay in Problems -> Security. The inbound email endpoints no longer need the whole REST API turned on. Runtime tests run WeKan's own transports against local SMTP and IMAP servers over TCP, a real Sandstorm Maildir, the webhook over HTTP and signed SNS messages; UI tests drive the Email and Chat views, the email-to-card settings and the Bounces page. They found and this fixes: every whole-message parse failed in the server bundle (nodemailer's addressparser resolved to its ESM build), the Chat view's drag and drop never started (dragscroll took the mouse) and dropped a card into the target's previous list, and the Chat panes did not follow a change to a right-to-left language. Thanks to xet7 ! Fixes #794, Fixes #3948.
141 lines
5.3 KiB
JavaScript
141 lines
5.3 KiB
JavaScript
// Bootstrap the collection-prototype shim (.helpers / .attachSchema / hooks)
|
|
// BEFORE any test pulls in a model. The normal server entry (server/main.js)
|
|
// require()s this first; the `meteor test` entry does not, so without this the
|
|
// first model that calls Collection.helpers({...}) — e.g. models/positionHistory.js
|
|
// reached via utils.tests → models/boards — throws "helpers is not a function".
|
|
// ES import statements evaluate in source order, so this must stay the first one.
|
|
import '/imports/collectionHelpers';
|
|
|
|
// i18n (TAPi18n) is isomorphic and used on the server too, so run its tests here
|
|
// as the old tests/main.js did (top-level import, no block import for swc/Meteor 3).
|
|
import '/imports/i18n/i18n.test.js';
|
|
import './utils.tests';
|
|
import './users.security.tests';
|
|
import './boards.security.tests';
|
|
import './cards.security.tests';
|
|
import './cards.methods.tests';
|
|
import './attachmentApi.tests';
|
|
import './attachmentApi.authContext.tests';
|
|
import './headerLoginAuth.tests';
|
|
import './search.logic.tests';
|
|
import './fileStoreStrategy.security.tests';
|
|
import './clonebleed.security.tests';
|
|
import './permissions.security.tests';
|
|
import './dependencies.metadata.tests';
|
|
import './dependencies.openapi.tests';
|
|
import './cards.dependencies.move.tests';
|
|
import './jiraCreator.dependencies.tests';
|
|
import './attachmentActivity.tests';
|
|
import './comments.permissions.tests';
|
|
import './announcementDismiss.tests';
|
|
import './boardSearch.comments.tests';
|
|
import './dueDateEdits.tests';
|
|
import './icsImport.tests';
|
|
import './orgTeamRestriction.tests';
|
|
import './cardsCopyDueFixes.tests';
|
|
import './archivePermission.tests';
|
|
import './selectAllSwimlane.tests';
|
|
import './swimlaneCopyLabels.tests';
|
|
import './attachmentDeleteActor.tests';
|
|
import './titleChangeActivity.tests';
|
|
import './removeMissingMember.tests';
|
|
import './boardListFilter.tests';
|
|
import './restCardFixes.tests';
|
|
import './checklistHideToggle.tests';
|
|
import './listColor.tests';
|
|
import './customNumberFormat.tests';
|
|
import './languageNames.tests';
|
|
import './subtaskSettings.tests';
|
|
import './subtaskCreation.tests';
|
|
import './deleteWebhookActivity.tests';
|
|
import './webhookNonBlocking.tests';
|
|
import './apiResponseHelpers.tests';
|
|
import './dnsbleed.security.tests';
|
|
import './fileValidationBypass.security.tests';
|
|
import './importExportSecurity.tests';
|
|
import './impersonationReportQuery.tests';
|
|
import './brokenCardsRepair.tests';
|
|
|
|
// #6520: these three suites existed but were never imported here, so `meteor test`
|
|
// silently skipped them - including two *bleed security regression suites, exactly
|
|
// the kind of test whose absence lets a fixed vulnerability come back unnoticed.
|
|
import './checklistbleed.security.tests';
|
|
import './proxybleed.security.tests';
|
|
import './filenameTruncation.tests';
|
|
|
|
// Moved here from client/lib/tests in v10.72. It reads boardTriggers.jade and
|
|
// boardTriggers.js off disk with fs/path, which are server-only: while the
|
|
// client bundle still carried node-polyfill-webpack-plugin's browser shims it
|
|
// bundled anyway, and when that plugin left with the @meteorjs/rspack 2.1.0
|
|
// update the whole `meteor test` client build stopped with "Cannot find module
|
|
// 'path' for matched aliased key 'path'" - one file's imports failing every
|
|
// mocha suite there is. A test that reads the repository belongs on the side
|
|
// that has a filesystem.
|
|
import './boardTriggersClass.tests';
|
|
|
|
import './syncHookedCards.tests';
|
|
import './syncRuleArchiveEffects.tests';
|
|
|
|
import './syncHookedActivities.tests';
|
|
|
|
import './notificationAwaitedDelivery.tests';
|
|
|
|
import './notificationPreparation.tests';
|
|
|
|
import './storedNotificationDelivery.tests';
|
|
import './webhookPreparation.tests';
|
|
import './instanceFeatures.tests';
|
|
import './storedWebhookHttp.tests';
|
|
import './commentPrivateFields.tests';
|
|
import './storedWebhooks.tests';
|
|
import './smtpDeadline.tests';
|
|
|
|
import './emailReceiptRetention.tests';
|
|
|
|
import './activityNotificationIntent.tests';
|
|
|
|
import './activityNotificationRecovery.tests';
|
|
|
|
import './storedRulePlans.tests';
|
|
|
|
import './storedHistoryChain.tests';
|
|
import './undoRedoClaim.tests';
|
|
|
|
import './scrumHistoryConfirmation.tests';
|
|
import './scrumIncarnation.tests';
|
|
import './scrumHistoryRecovery.tests';
|
|
|
|
import "./cardListEntry.tests";
|
|
import './autoArchiveCards.tests';
|
|
import './cardParents.tests';
|
|
import './inboundEmailRoute.tests';
|
|
import './emailToCard.tests';
|
|
import './emailSendReceive.tests';
|
|
import './emailBounces.tests';
|
|
import './activityIncarnation.tests';
|
|
import './listSyncDurable.tests';
|
|
import './storedRuleChecklist.tests';
|
|
import './storedRuleMove.tests';
|
|
import './storedRuleChecklistLifecycle.tests';
|
|
import './storedRuleCopyCard.tests';
|
|
import './dependencyLayers.tests';
|
|
import './cardMoveLabelActivities.tests';
|
|
import './attachedCards.tests';
|
|
import './storedRuleMoveBoard.tests';
|
|
import './ruleEmailFollowedMove.tests';
|
|
import './jiraScrumImport.tests';
|
|
import './externalScrumImport.tests';
|
|
import './listSyncGitlabEstimate.tests';
|
|
import './scrumScopeHistory.tests';
|
|
import './scrumSnapshotRows.tests';
|
|
import './scrumTransferMerge.tests';
|
|
import './continuousBackup.tests';
|
|
import './copySubtaskScope.tests';
|
|
import './subtaskDone.tests';
|
|
import './ruleTriggerScope.tests';
|
|
import './scrumMovedReferences.tests';
|
|
import './editableCardIds.tests';
|
|
import './listSyncPlanning.tests';
|
|
import './notificationDelivery.tests';
|
|
import './customFieldLinks.tests';
|