diff options
| author | bwarsaw | 2000-07-22 01:37:27 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-07-22 01:37:27 +0000 |
| commit | 90c2af0a6e3644226bd28788b24532c058b88839 (patch) | |
| tree | add26bceab5dfecf22b64cde3b2f4fba7bc1660a | |
| parent | 67845189883017908f56069d1def149861540fd7 (diff) | |
| download | mailman-90c2af0a6e3644226bd28788b24532c058b88839.tar.gz mailman-90c2af0a6e3644226bd28788b24532c058b88839.tar.zst mailman-90c2af0a6e3644226bd28788b24532c058b88839.zip | |
| -rwxr-xr-x | scripts/mailowner | 14 | ||||
| -rwxr-xr-x | scripts/owner | 14 |
2 files changed, 22 insertions, 6 deletions
diff --git a/scripts/mailowner b/scripts/mailowner index a302b3ae8..7ed7ba8f9 100755 --- a/scripts/mailowner +++ b/scripts/mailowner @@ -61,9 +61,17 @@ def main(): # could take a long time to acquire the lock. This way we're fairly safe # against catastrophe at the expense of more disk I/O. # - # The `toadmin' flag is a message to qrunner that an alternative route - # should be taken for this message. - msg.Enqueue(mlist, toadmin=1) + # Try to figure out if the message came to the listname-admin@ or + # listname-owner@ address. Ideally these would get delivered to different + # programs, but for backwards compatibility, they both get delivered to + # mailowner. We don't want -owner messages to get processed by the bounce + # processor. + # + # See cron/qrunner for the paths these to flagged messages take. + if msg.get('to') == mlist.GetOwnerEmail(): + msg.Enqueue(mlist, toowner=1) + else: + msg.Enqueue(mlist, toadmin=1) diff --git a/scripts/owner b/scripts/owner index a302b3ae8..7ed7ba8f9 100755 --- a/scripts/owner +++ b/scripts/owner @@ -61,9 +61,17 @@ def main(): # could take a long time to acquire the lock. This way we're fairly safe # against catastrophe at the expense of more disk I/O. # - # The `toadmin' flag is a message to qrunner that an alternative route - # should be taken for this message. - msg.Enqueue(mlist, toadmin=1) + # Try to figure out if the message came to the listname-admin@ or + # listname-owner@ address. Ideally these would get delivered to different + # programs, but for backwards compatibility, they both get delivered to + # mailowner. We don't want -owner messages to get processed by the bounce + # processor. + # + # See cron/qrunner for the paths these to flagged messages take. + if msg.get('to') == mlist.GetOwnerEmail(): + msg.Enqueue(mlist, toowner=1) + else: + msg.Enqueue(mlist, toadmin=1) |
