Fixes in VERP handling.
VERP disable header option moved from config to send configurations. Some additional logging for VERP.
This commit is contained in:
parent
a769bfb567
commit
3b1986116f
7 changed files with 33 additions and 16 deletions
|
@ -32,7 +32,7 @@ async function onRcptTo(address, session) {
|
|||
|
||||
session.message = message;
|
||||
|
||||
log.verbose('VERP', 'Incoming message for Campaign %s, List %s, Subscription %s', message.campaign, message.list, message.subscription);
|
||||
log.verbose('VERP', 'Incoming message for campaign:%s, list:%s, subscription:%s', message.campaign, message.list, message.subscription);
|
||||
}
|
||||
|
||||
function onData(stream, session, callback) {
|
||||
|
@ -56,7 +56,7 @@ function onData(stream, session, callback) {
|
|||
return 'Message accepted';
|
||||
} else {
|
||||
await campaigns.changeStatusByMessage(contextHelpers.getAdminContext(), session.message, SubscriptionStatus.BOUNCED, bounceResult.action === 'failed');
|
||||
log.verbose('VERP', 'Marked message %s as unsubscribed', session.message.campaign);
|
||||
log.verbose('VERP', 'Marked message (campaign:%s, list:%s, subscription:%s) as unsubscribed', session.message.campaign, session.message.list, session.message.subscription);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue