summaryrefslogtreecommitdiff
path: root/src/mailman/mta/deliver.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/mta/deliver.py')
-rw-r--r--src/mailman/mta/deliver.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mailman/mta/deliver.py b/src/mailman/mta/deliver.py
index 6ca743df4..caca18aef 100644
--- a/src/mailman/mta/deliver.py
+++ b/src/mailman/mta/deliver.py
@@ -102,11 +102,11 @@ def deliver(mlist, msg, msgdata):
)
template = config.logging.smtp.every
if template.lower() != 'no':
- log.info('%s', expand(template, substitutions))
+ log.info('%s', expand(template, mlist, substitutions))
if refused:
template = config.logging.smtp.refused
if template.lower() != 'no':
- log.info('%s', expand(template, substitutions))
+ log.info('%s', expand(template, mlist, substitutions))
else:
# Log the successful post, but if it was not destined to the mailing
# list (e.g. to the owner or admin), print the actual recipients
@@ -117,7 +117,7 @@ def deliver(mlist, msg, msgdata):
substitutions['recips'] = COMMA.join(recips)
template = config.logging.smtp.success
if template.lower() != 'no':
- log.info('%s', expand(template, substitutions))
+ log.info('%s', expand(template, mlist, substitutions))
# Process any failed deliveries.
temporary_failures = []
permanent_failures = []
@@ -145,7 +145,7 @@ def deliver(mlist, msg, msgdata):
smtpcode = code, # noqa
smtpmsg = smtp_message, # noqa
)
- log.info('%s', expand(template, substitutions))
+ log.info('%s', expand(template, mlist, substitutions))
# Return the results
if temporary_failures or permanent_failures:
raise SomeRecipientsFailed(temporary_failures, permanent_failures)