From 64047694242be831634a82c35d948cbc44f60f20 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Mon, 20 May 2013 08:19:19 -0700 Subject: - added Persian (Farsi - fa) language. - Updated messages/mailman.pot - msgmerged all mailman.po files. --- Mailman/Defaults.py.in | 1 + 1 file changed, 1 insertion(+) (limited to 'Mailman/Defaults.py.in') diff --git a/Mailman/Defaults.py.in b/Mailman/Defaults.py.in index be1ac735..6666d1e5 100755 --- a/Mailman/Defaults.py.in +++ b/Mailman/Defaults.py.in @@ -1515,6 +1515,7 @@ add_language('en', _('English (USA)'), 'us-ascii', 'ltr') add_language('es', _('Spanish (Spain)'), 'iso-8859-1', 'ltr') add_language('et', _('Estonian'), 'iso-8859-15', 'ltr') add_language('eu', _('Euskara'), 'iso-8859-15', 'ltr') # Basque +add_language('fa', _('Persian'), 'utf-8', 'rtl') add_language('fi', _('Finnish'), 'iso-8859-1', 'ltr') add_language('fr', _('French'), 'iso-8859-1', 'ltr') add_language('gl', _('Galician'), 'utf-8', 'ltr') -- cgit v1.2.3 From cb2733e029d419904f0fc488f5989beb3aa3ce71 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Thu, 18 Jul 2013 20:21:19 -0700 Subject: Backported the held message sorting to 2.1 and made it optional. --- Mailman/Defaults.py.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Mailman/Defaults.py.in') diff --git a/Mailman/Defaults.py.in b/Mailman/Defaults.py.in index 6666d1e5..f1a5d907 100755 --- a/Mailman/Defaults.py.in +++ b/Mailman/Defaults.py.in @@ -1,6 +1,6 @@ # -*- python -*- -# Copyright (C) 1998-2012 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2013 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -247,6 +247,10 @@ BROKEN_BROWSER_REPLACEMENTS = {'\x8b': '‹', # single left angle quote '\xbe': '¾', # > plus high order bit '\xa2': '¢', # " plus high order bit } +# +# Shall the admindb held message summary display the grouping and sorting +# option radio buttons? +DISPLAY_HELD_SUMMARY_SORT_BUTTONS = No -- cgit v1.2.3 From 9b8cf403719c083270b2d51a0aac22e120355522 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Thu, 18 Jul 2013 20:49:20 -0700 Subject: First cut at the author_is_list feature. --- Mailman/Defaults.py.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Mailman/Defaults.py.in') diff --git a/Mailman/Defaults.py.in b/Mailman/Defaults.py.in index f1a5d907..f87f6665 100755 --- a/Mailman/Defaults.py.in +++ b/Mailman/Defaults.py.in @@ -552,7 +552,10 @@ NNTP_REWRITE_DUPLICATE_HEADERS = [ # footer or scrubbing attachments or even reply-to munging can break these # signatures. It is generally felt that these signatures have value, even if # broken and even if the outgoing message is resigned. However, some sites -# may wish to remove these headers by setting this to Yes. +# may wish to remove these headers. Possible values and meanings are: +# No, 0, False -> do not remove headers. +# 1 -> remove headers only if the list's author_is_list setting is Yes. +# Yes, 2, True -> always remove headers. REMOVE_DKIM_HEADERS = No # All `normal' messages which are delivered to the entire list membership go @@ -1069,6 +1072,10 @@ DEFAULT_SEND_WELCOME_MSG = Yes # Send goodbye messages to unsubscribed members? DEFAULT_SEND_GOODBYE_MSG = Yes +# Rewrite the From: header of posts replacing the posters address with +# that of the list. Also see REMOVE_DKIM_HEADERS above. +DEFAULT_AUTHOR_IS_LIST = No + # Wipe sender information, and make it look like the list-admin # address sends all messages DEFAULT_ANONYMOUS_LIST = No -- cgit v1.2.3 From 037acd8e92f42f86f5086a570a23466c128fc480 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Fri, 19 Jul 2013 12:24:22 -0700 Subject: Second cut at the author_is_list feature. --- Mailman/Defaults.py.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Mailman/Defaults.py.in') diff --git a/Mailman/Defaults.py.in b/Mailman/Defaults.py.in index f87f6665..ee17d344 100755 --- a/Mailman/Defaults.py.in +++ b/Mailman/Defaults.py.in @@ -108,6 +108,10 @@ ALLOW_SITE_ADMIN_COOKIES = No # expire that many seconds following their last use. AUTHENTICATION_COOKIE_LIFETIME = 0 +# The following must be set to Yes to enable the 'author is list' feature. +# See DEFAULT_AUTHOR_IS_LIST below. +ALLOW_AUTHOR_IS_LIST = No + # Form lifetime is set against Cross Site Request Forgery. FORM_LIFETIME = hours(1) -- cgit v1.2.3 From 1beb49523f59142b215d75343fd797b582db77b6 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Fri, 19 Jul 2013 14:33:57 -0700 Subject: Enable setting a default grouping/sorting for the admindb held message summary via a DISPLAY_HELD_SUMMARY_SORT_BUTTONS setting. --- Mailman/Defaults.py.in | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Mailman/Defaults.py.in') diff --git a/Mailman/Defaults.py.in b/Mailman/Defaults.py.in index ee17d344..10a2f056 100755 --- a/Mailman/Defaults.py.in +++ b/Mailman/Defaults.py.in @@ -253,7 +253,10 @@ BROKEN_BROWSER_REPLACEMENTS = {'\x8b': '‹', # single left angle quote } # # Shall the admindb held message summary display the grouping and sorting -# option radio buttons? +# option radio buttons? Set this in mm_cfg.py to one of the following: +# SSENDER -> Default to grouped and sorted by sender. +# SSENDERTIME -> Default to grouped by sender and sorted by time. +# STIME -> Default to ungrouped and sorted by time. DISPLAY_HELD_SUMMARY_SORT_BUTTONS = No @@ -1411,6 +1414,11 @@ UNSUBSCRIBE = 5 ACCEPT = 6 HOLD = 7 +# admindb summary sort button settings. All must evaluate to True. +SSENDER = 1 +SSENDERTIME = 2 +STIME = 3 + # Standard text field width TEXTFIELDWIDTH = 40 -- cgit v1.2.3 From 5391cce1af71723b92bafc2419cec962f1e3ece3 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Fri, 27 Sep 2013 16:33:35 -0700 Subject: Made author_is_list a 3-way with an option to wrap the message. --- Mailman/Defaults.py.in | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'Mailman/Defaults.py.in') diff --git a/Mailman/Defaults.py.in b/Mailman/Defaults.py.in index 10a2f056..305be5cb 100755 --- a/Mailman/Defaults.py.in +++ b/Mailman/Defaults.py.in @@ -561,7 +561,7 @@ NNTP_REWRITE_DUPLICATE_HEADERS = [ # broken and even if the outgoing message is resigned. However, some sites # may wish to remove these headers. Possible values and meanings are: # No, 0, False -> do not remove headers. -# 1 -> remove headers only if the list's author_is_list setting is Yes. +# 1 -> remove headers only if the list's author_is_list setting is 1. # Yes, 2, True -> always remove headers. REMOVE_DKIM_HEADERS = No @@ -594,6 +594,7 @@ GLOBAL_PIPELINE = [ # (outgoing) path, finally leaving the message in the outgoing queue. 'AfterDelivery', 'Acknowledge', + 'WrapMessage', 'ToOutgoing', ] @@ -1079,9 +1080,13 @@ DEFAULT_SEND_WELCOME_MSG = Yes # Send goodbye messages to unsubscribed members? DEFAULT_SEND_GOODBYE_MSG = Yes -# Rewrite the From: header of posts replacing the posters address with -# that of the list. Also see REMOVE_DKIM_HEADERS above. -DEFAULT_AUTHOR_IS_LIST = No +# The following is a three way setting. +# 0 -> Do not rewrite the From: or wrap the message. +# 1 -> Rewrite the From: header of posts replacing the posters address with +# that of the list. Also see REMOVE_DKIM_HEADERS above. +# 2 -> Do not modify the From: of the message, but wrap the message in an outer +# message From the list address. +DEFAULT_AUTHOR_IS_LIST = 0 # Wipe sender information, and make it look like the list-admin # address sends all messages -- cgit v1.2.3 From 2d8a570e69262584f838526a01df91a3c37de3ad Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Sat, 28 Sep 2013 16:08:15 -0700 Subject: Renamed author_is_list to from_is_list. --- Mailman/Defaults.py.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Mailman/Defaults.py.in') diff --git a/Mailman/Defaults.py.in b/Mailman/Defaults.py.in index 305be5cb..bb70f497 100755 --- a/Mailman/Defaults.py.in +++ b/Mailman/Defaults.py.in @@ -109,8 +109,8 @@ ALLOW_SITE_ADMIN_COOKIES = No AUTHENTICATION_COOKIE_LIFETIME = 0 # The following must be set to Yes to enable the 'author is list' feature. -# See DEFAULT_AUTHOR_IS_LIST below. -ALLOW_AUTHOR_IS_LIST = No +# See DEFAULT_FROM_IS_LIST below. +ALLOW_FROM_IS_LIST = No # Form lifetime is set against Cross Site Request Forgery. FORM_LIFETIME = hours(1) @@ -561,7 +561,7 @@ NNTP_REWRITE_DUPLICATE_HEADERS = [ # broken and even if the outgoing message is resigned. However, some sites # may wish to remove these headers. Possible values and meanings are: # No, 0, False -> do not remove headers. -# 1 -> remove headers only if the list's author_is_list setting is 1. +# 1 -> remove headers only if the list's from_is_list setting is 1. # Yes, 2, True -> always remove headers. REMOVE_DKIM_HEADERS = No @@ -1086,7 +1086,7 @@ DEFAULT_SEND_GOODBYE_MSG = Yes # that of the list. Also see REMOVE_DKIM_HEADERS above. # 2 -> Do not modify the From: of the message, but wrap the message in an outer # message From the list address. -DEFAULT_AUTHOR_IS_LIST = 0 +DEFAULT_FROM_IS_LIST = 0 # Wipe sender information, and make it look like the list-admin # address sends all messages -- cgit v1.2.3 From 2be3678296dfe921fc9cf4a2cd3a8ed71fdd4232 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Tue, 29 Oct 2013 13:24:47 -0700 Subject: Implemented whitelist for headers to keep for anonymous lists. --- Mailman/Defaults.py.in | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'Mailman/Defaults.py.in') diff --git a/Mailman/Defaults.py.in b/Mailman/Defaults.py.in index bb70f497..a7bf31e5 100755 --- a/Mailman/Defaults.py.in +++ b/Mailman/Defaults.py.in @@ -983,6 +983,27 @@ USER_FRIENDLY_PASSWORDS = Yes MEMBER_PASSWORD_LENGTH = 8 ADMIN_PASSWORD_LENGTH = 10 +# The following headers are always removed from posts to anonymous lists as +# they can reveal the identity of the poster or at least the poster's domain. +# +# From:, Reply-To:, Sender:, Return-Path:, X-Originating-Email:, Received:, +# Message-ID: and X-Envelope-From:. +# +# In addition, Return-Receipt-To:, Disposition-Notification-To:, +# X-Confirm-Reading-To: and X-Pmrqc: headers are removed from all posts as +# they can be used to fish for list membership in addition to possibly +# revealing sender information. +# +# In addition to the above removals, all other headers except those matching +# regular expressions in the following setting are also removed. The default +# setting below keeps all non X- headers, those X- headers added by Mailman +# and any X-Spam- headers. +ANONYMOUS_LIST_KEEP_HEADERS = ['^(?!x-)', '^x-mailman-', + '^x-content-filtered-by:', '^x-topics:', + '^x-ack:', '^x-beenthere:', + '^x-list-administrivia:', '^x-spam-', + ] + ##### -- cgit v1.2.3