Skip to content

Commit

Permalink
fix: revert refactoring error, fixes #3403 (#3407)
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson authored Sep 26, 2024
1 parent 81578d3 commit ad9c65e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#### Changed

- fix: revert a refactoring error in queue/lmtp, #3407
- removed dependency on ldap plugins #3399
- doc(tls.md): add note for no_tls_hosts for outbound
- test(tls): add tests for no_tls_hosts for inbound & outbound
Expand Down
4 changes: 3 additions & 1 deletion plugins/queue/lmtp.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ exports.hook_queue = (next, connection) => {
const txn = connection?.transaction;
if (!txn) return next();

if (txn.notes.get('queue.wants') !== 'lmtp') return next();
const q_wants = txn.notes.get('queue.wants');

if (q_wants && q_wants !== 'lmtp') return next();

txn.notes.using_lmtp = true;
outbound.send_trans_email(txn, next);
Expand Down

0 comments on commit ad9c65e

Please sign in to comment.