Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init_wildduck_transaction in index, in case hook_mail not run #33

Merged
merged 2 commits into from
Apr 17, 2024

Conversation

msimerson
Copy link
Contributor

@msimerson msimerson commented Apr 13, 2024

There's no guarantee that hook_mail will get run. If some other Haraka plugin runs on hook_mail before wildduck and calls next(OK), then wildduck's hook_mail won't ever get called. That crashes the wildduck plugin in the recipient handler that does this: const { recipients, forwards, users } = txn.notes.targets;

Additional Changes:

There's no guarantee that hook_mail will get run. If some other Haraka plugin runs on hook_mail before wildduck and calls `next(OK)`, then wildduck's hook_mail won't ever get called. That crashes the plugin in the recipient handler that does this: `const { recipients, forwards, users } = txn.notes.targets;`.

Additionally:

- add @haraka/eslint-config (which brings in Haraka globals)
- use shorter logging syntax
-
index.js Outdated Show resolved Hide resolved
@andris9 andris9 merged commit 30374bd into nodemailer:master Apr 17, 2024
3 checks passed
@msimerson msimerson deleted the haraka-fixups branch April 17, 2024 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants