From 850df25914f53eeb1156d2389d92385a88cb216f Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Fri, 15 Jun 2018 20:38:59 -0700 Subject: Updated contrib/mmdsr for security log. --- contrib/mmdsr | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/contrib/mmdsr b/contrib/mmdsr index bf5e71c9..03a35845 100644 --- a/contrib/mmdsr +++ b/contrib/mmdsr @@ -207,6 +207,11 @@ # Updated on: Sun Jun 4 17:12:54 PDT 2017 # Added -a to default (e)grep to account for logs that may # have non-ascii and be seen as binary. +# +# 0.0.28 Update by Mark Sapiro +# Updated on: Fri Jun 15 20:20:36 PDT 2018 +# Added report of new security log. +# Augmented 0.0.24 to do as well as . ############################################################################### # Set up locations of standard commands, directories, etc.... @@ -275,7 +280,7 @@ MAX_DATA_LINES=100 # Mailman Log files to check for errors. # No need to specify path, only log file name. ############################################################################### -ERR_LOGS="error fromusenet locks mischief post qrunner smtp-failure vette" +ERR_LOGS="error fromusenet locks mischief security post qrunner smtp-failure vette" ############################################################################### # Mailman Log files to summarize. @@ -499,6 +504,11 @@ do echo "------------------------------" >> $TMP $EGREP -vi '(Login failure with private rosters|Unsub attempt of non-member|Reminder attempt of non-member)' $TMPLOG | $SED 's/^.* ([0-9]*) //' | $SORT | $UNIQ -c | $SORT -nr >> $TMP + elif [ "${LOG}" = "security" ] ; then + + echo "" >> $TMP + $GREP 'Authorization failed' $TMPLOG | $SED 's/^.* ([0-9]*) //' | $SORT | $UNIQ -c | $SORT -nr >> $TMP + elif [ "${LOG}" = "post" ] ; then $GREP -vi 'success' $TMPLOG | $SED 's/^.* ([0-9]*) //' | $SORT | $UNIQ -c | $SORT -nr >> $TMP @@ -548,7 +558,7 @@ do echo "" >> $TMP echo "Banned Subscriptions" >> $TMP echo "------------------------------" >> $TMP - $GREP -i 'banned subscription' $TMPLOG | $AWK '{ print $6 " " $9 }' | $SED -e 's/\+[0-9][0-9]*@/+@/' | $SORT | $UNIQ -c | $SORT -nr >> $TMP + $GREP -i 'banned subscription' $TMPLOG | $AWK '{ print $6 " " $9 }' | $SED -e 's/\+[0-9][0-9]*@/+@/' -e 's/\+[a-z][a-z]*@/+@/' | $SORT | $UNIQ -c | $SORT -nr >> $TMP echo "" >> $TMP echo "DMARC lookups" >> $TMP -- cgit v1.2.3 From dd09906adb9316b494cdef6a6ed22daf29a2eeb5 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Sat, 16 Jun 2018 09:16:56 -0700 Subject: Minor formatting change in mmdsr report. --- contrib/mmdsr | 1 - 1 file changed, 1 deletion(-) diff --git a/contrib/mmdsr b/contrib/mmdsr index 03a35845..5eeeb34d 100644 --- a/contrib/mmdsr +++ b/contrib/mmdsr @@ -506,7 +506,6 @@ do elif [ "${LOG}" = "security" ] ; then - echo "" >> $TMP $GREP 'Authorization failed' $TMPLOG | $SED 's/^.* ([0-9]*) //' | $SORT | $UNIQ -c | $SORT -nr >> $TMP elif [ "${LOG}" = "post" ] ; then -- cgit v1.2.3 From 3e3819ce7fa318f5e60b2f04ae94b48698ab73a5 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Sat, 16 Jun 2018 09:39:45 -0700 Subject: Preserve translation accross a call to SendSubscribeAck(). --- Mailman/MailList.py | 10 ++++++++-- NEWS | 15 +++++++++------ 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/Mailman/MailList.py b/Mailman/MailList.py index cc1be3b5..abc46abd 100755 --- a/Mailman/MailList.py +++ b/Mailman/MailList.py @@ -1058,8 +1058,14 @@ class MailList(HTMLFormatter, Deliverer, ListAdmin, syslog('subscribe', '%s: new%s %s, %s', self.internal_name(), kind, formataddr((name, email)), whence) if ack: - self.SendSubscribeAck(email, self.getMemberPassword(email), - digest, text) + lang = self.preferred_language + otrans = i18n.get_translation() + i18n.set_language(lang) + try: + self.SendSubscribeAck(email, self.getMemberPassword(email), + digest, text) + finally: + i18n.set_translation(otrans) if admin_notif: lang = self.preferred_language otrans = i18n.get_translation() diff --git a/NEWS b/NEWS index 7494695a..e0c67bb0 100644 --- a/NEWS +++ b/NEWS @@ -85,7 +85,10 @@ Here is a history of user visible changes to Mailman. required. (LP: #1769374) - Quoting in the mailman-config command has been changed from double to - single quotes to allow double-quoted parameters. (LP:1774986) + single quotes to allow double-quoted parameters. (LP: #1774986) + + - Approving a held subscription for a user with a 'different' preferred + language no longer corrupts the results page. (LP: #1777222) Miscellaneous @@ -162,7 +165,7 @@ Here is a history of user visible changes to Mailman. i18n - The Russian translation has been updated by Sergey Matveev. - (LP:#1708016) + (LP: #1708016) Bug fixes and other patches @@ -235,7 +238,7 @@ Here is a history of user visible changes to Mailman. Bug fixes and other patches - The list-owner@virtual.domain addresses are now added to virtual-mailman - as they are exposed in 'list created' emails. (LP: 1694384) + as they are exposed in 'list created' emails. (LP: #1694384) - The 'list run by' addresses in web page footers are now just the list-owner address. (LP: #1694384) @@ -810,7 +813,7 @@ Here is a history of user visible changes to Mailman. - Fixed a bug in bin/rmlist that would throw an exception or just fail to remove held message files for a list with regexp special characters in - its name. (LP:#1414864) + its name. (LP: #1414864) - When applying DMARC mitigations, CookHeaders now adds the original From: to Cc: rather than Reply-To: in some cases to make MUA 'reply' and @@ -959,10 +962,10 @@ Here is a history of user visible changes to Mailman. names that look like email addresses. (LP: #1304511) - Added the list name to the vette log "held message approved" entry. - (LP: 1295875) + (LP: #1295875) - Added the CGI module name to various "No such list" error log entries. - (LP: 1295875) + (LP: #1295875) - Modified contrib/mmdsr to report module name if present in "No such list error log entries. -- cgit v1.2.3