summaryrefslogtreecommitdiff
path: root/src/mailman/queue/lmtp.py
diff options
context:
space:
mode:
authorBarry Warsaw2009-02-19 22:23:42 -0500
committerBarry Warsaw2009-02-19 22:23:42 -0500
commit8644b80168066c8fd11a7e2440ed8566453f0cd4 (patch)
treef68f709fc52140ee135b5fb1862690edbe69d572 /src/mailman/queue/lmtp.py
parentfcec8479c1f07576094102128408f4c23b278bb5 (diff)
downloadmailman-8644b80168066c8fd11a7e2440ed8566453f0cd4.tar.gz
mailman-8644b80168066c8fd11a7e2440ed8566453f0cd4.tar.zst
mailman-8644b80168066c8fd11a7e2440ed8566453f0cd4.zip
Major cleanup of the automatic response stuff.
inject_message() grows a keyword argument dictionary which gets merged into the message metadata. Move NODELTA into the autorespond interface as ALWAYS_REPLY. Convert the integer response values into the ResponseAction enum.
Diffstat (limited to 'src/mailman/queue/lmtp.py')
-rw-r--r--src/mailman/queue/lmtp.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mailman/queue/lmtp.py b/src/mailman/queue/lmtp.py
index 8befa72b4..68a86eeb3 100644
--- a/src/mailman/queue/lmtp.py
+++ b/src/mailman/queue/lmtp.py
@@ -170,25 +170,25 @@ class LMTPRunner(Runner, smtpd.SMTPServer):
if subaddress in ('bounces', 'admin'):
queue = 'bounce'
elif subaddress == 'confirm':
- msgdata['toconfirm'] = True
+ msgdata['to_confirm'] = True
queue = 'command'
elif subaddress in ('join', 'subscribe'):
- msgdata['tojoin'] = True
+ msgdata['to_join'] = True
queue = 'command'
elif subaddress in ('leave', 'unsubscribe'):
- msgdata['toleave'] = True
+ msgdata['to_leave'] = True
queue = 'command'
elif subaddress == 'owner':
msgdata.update(dict(
- toowner=True,
+ to_owner=True,
envsender=config.mailman.site_owner,
))
queue = 'in'
elif subaddress is None:
- msgdata['tolist'] = True
+ msgdata['to_list'] = True
queue = 'in'
elif subaddress == 'request':
- msgdata['torequest'] = True
+ msgdata['to_request'] = True
queue = 'command'
else:
elog.error('Unknown sub-address: %s', subaddress)