# This patch file, files created by its use and not subject to other copyright # and any changes in other files generated by its use are # Copyright (C) 2000-2003 by the Free Software Foundation, Inc. # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA # This patch file is Free Software and permission is granted to copy and # redistribute it in original or modified form under the terms of the # GNU General Public License (GPL). # See the GPL COPYING files accompanying Mailman distributions this # patch was intended to work in conjunction with for further details. diff -r -u -P --exclude=.DS_Store mailman-2.1.3/Mailman/Defaults.py.in mailman-2.1.3-mod/Mailman/Defaults.py.in --- mailman-2.1.3/Mailman/Defaults.py.in Mon Sep 22 05:26:14 2003 +++ mailman-2.1.3-mod/Mailman/Defaults.py.in Mon Sep 29 08:27:30 2003 @@ -939,7 +939,9 @@ # Check for administrivia in messages sent to the main list? DEFAULT_ADMINISTRIVIA = Yes - +# Should the body of a message requiring moderation be included in the +# request to the moderator(s) +DEFAULT_MODERATE_INC_BODY = Yes ##### # Digestification defaults. Same caveat applies here as with list defaults. diff -r -u -P --exclude=.DS_Store mailman-2.1.3/Mailman/Gui/General.py mailman-2.1.3-mod/Mailman/Gui/General.py --- mailman-2.1.3/Mailman/Gui/General.py Wed Dec 11 12:41:56 2002 +++ mailman-2.1.3-mod/Mailman/Gui/General.py Mon Sep 29 08:27:30 2003 @@ -149,6 +149,10 @@ _("""Hide the sender of a message, replacing it with the list address (Removes From, Sender and Reply-To fields)""")), + ('moderate_inc_body', mm_cfg.Radio, (_('No'), _('Yes')), 0, + _("""Should the body of a message requiring moderation be + included in the request to the moderator(s))""")), + _('''Reply-To: header munging'''), ('first_strip_reply_to', mm_cfg.Radio, (_('No'), _('Yes')), 0, diff -r -u -P --exclude=.DS_Store mailman-2.1.3/Mailman/Handlers/Hold.py mailman-2.1.3-mod/Mailman/Handlers/Hold.py --- mailman-2.1.3/Mailman/Handlers/Hold.py Mon Mar 31 22:49:42 2003 +++ mailman-2.1.3-mod/Mailman/Handlers/Hold.py Mon Sep 29 08:27:30 2003 @@ -269,7 +269,8 @@ dmsg['Sender'] = requestaddr dmsg['From'] = requestaddr nmsg.attach(text) - nmsg.attach(MIMEMessage(msg)) + if mlist.moderate_inc_body: + nmsg.attach(MIMEMessage(msg)) nmsg.attach(MIMEMessage(dmsg)) nmsg.send(mlist, **{'tomoderators': 1}) finally: diff -r -u -P --exclude=.DS_Store mailman-2.1.3/Mailman/MailList.py mailman-2.1.3-mod/Mailman/MailList.py --- mailman-2.1.3/Mailman/MailList.py Sun Sep 28 17:03:34 2003 +++ mailman-2.1.3-mod/Mailman/MailList.py Mon Sep 29 08:27:30 2003 @@ -328,6 +328,7 @@ self.obscure_addresses = mm_cfg.DEFAULT_OBSCURE_ADDRESSES self.admin_member_chunksize = mm_cfg.DEFAULT_ADMIN_MEMBER_CHUNKSIZE self.administrivia = mm_cfg.DEFAULT_ADMINISTRIVIA + self.moderate_inc_body = mm_cfg.DEFAULT_MODERATE_INC_BODY self.preferred_language = mm_cfg.DEFAULT_SERVER_LANGUAGE self.available_languages = [] self.include_rfc2369_headers = 1 diff -r -u -P --exclude=.DS_Store mailman-2.1.3/Mailman/Version.py mailman-2.1.3-mod/Mailman/Version.py --- mailman-2.1.3/Mailman/Version.py Mon Sep 22 04:34:19 2003 +++ mailman-2.1.3-mod/Mailman/Version.py Mon Sep 29 08:27:30 2003 @@ -36,7 +36,8 @@ (REL_LEVEL << 4) | (REL_SERIAL << 0)) # config.pck schema version number -DATA_FILE_VERSION = 88 +# 88.1 to take account of extra moderate_inc_body list attribute +DATA_FILE_VERSION = 88.1 # qfile/*.db schema version number QFILE_SCHEMA_VERSION = 3