diff options
| author | bwarsaw | 2000-02-26 21:52:53 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-02-26 21:52:53 +0000 |
| commit | 1ed8de6fe313a57880c0424d2411793a2db206e0 (patch) | |
| tree | 99bfdc54e8d0d03c697407b691bb974fc626f970 | |
| parent | b2d21a2f7e10f27b3c096808a30e4d4fc1924472 (diff) | |
| download | mailman-1ed8de6fe313a57880c0424d2411793a2db206e0.tar.gz mailman-1ed8de6fe313a57880c0424d2411793a2db206e0.tar.zst mailman-1ed8de6fe313a57880c0424d2411793a2db206e0.zip | |
| -rw-r--r-- | Mailman/MailCommandHandler.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Mailman/MailCommandHandler.py b/Mailman/MailCommandHandler.py index b342c41e9..d93cf6a1b 100644 --- a/Mailman/MailCommandHandler.py +++ b/Mailman/MailCommandHandler.py @@ -109,6 +109,12 @@ class MailCommandHandler: self.AddToResponse(text, trunc=trunc, prefix=prefix) def ParseMailCommands(self, msg): + # Break any infloops. If this has come from a Mailman server then + # it'll have this header. It's still possible to infloop between two + # servers because there's no guaranteed way to know it came from a + # bot. + if msg.get('x-beenthere') or msg.get('list-id'): + return # check the autoresponse stuff if self.autorespond_requests: from Mailman.Handlers import Replybot |
