From 4955373bcfc48c2e8a66a0962f8697fb71f63ce6 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Tue, 8 Feb 2000 20:50:01 +0000 Subject: process(): Short-circuit return for when the list object attribute `archive' is false (i.e. archiving was disabled by the list admin). --- Mailman/Handlers/ToArchive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mailman/Handlers/ToArchive.py b/Mailman/Handlers/ToArchive.py index e162dad97..45f261e70 100644 --- a/Mailman/Handlers/ToArchive.py +++ b/Mailman/Handlers/ToArchive.py @@ -23,7 +23,7 @@ from Mailman import mm_cfg def process(mlist, msg): # short circuits - if getattr(msg, 'isdigest', 0): + if getattr(msg, 'isdigest', 0) or not mlist.archive: return archivep = msg.getheader('x-archive') if archivep and string.lower(archivep) == 'no': -- cgit v1.3.1