summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcotton1998-11-11 15:34:44 +0000
committercotton1998-11-11 15:34:44 +0000
commitd342f934b83c586b493489ed853b36f423416209 (patch)
tree16ad14f7442bd009c8bdfe2162af924fee745fae
parent81ca509d4e874250e23e88225d18b0dccd3898d9 (diff)
downloadmailman-d342f934b83c586b493489ed853b36f423416209.tar.gz
mailman-d342f934b83c586b493489ed853b36f423416209.tar.zst
mailman-d342f934b83c586b493489ed853b36f423416209.zip
added post logging.
scott
-rw-r--r--Mailman/MailList.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py
index 60a9dd240..cfb64a401 100644
--- a/Mailman/MailList.py
+++ b/Mailman/MailList.py
@@ -1038,6 +1038,9 @@ class MailList(MailCommandHandler, HTMLFormatter, Deliverer, ListAdmin,
def DeliveryEnabled(x, s=self, v=mm_cfg.DisableDelivery):
return not s.GetUserOption(x, v)
recipients = filter(DeliveryEnabled, recipients)
+ self.LogMsg("post", "post to %s from %s size=%d",
+ self._internal_name, msg.GetSender(), len(msg.body))
+
self.DeliverToList(msg, recipients,
header = self.msg_header % self.__dict__,
footer = self.msg_footer % self.__dict__)