Skip to content

Commit

Permalink
fix: revert refactoring error, fixes #3403
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Sep 25, 2024
1 parent 504570e commit 257d519
Showing 1 changed file with 3 additions and 1 deletion.
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 257d519

Please sign in to comment.