migration script + update changelog
authorx2000habouzit <x2000habouzit>
Sat, 16 Oct 2004 11:50:28 +0000 (11:50 +0000)
committerx2000habouzit <x2000habouzit>
Sat, 16 Oct 2004 11:50:28 +0000 (11:50 +0000)
ChangeLog
scripts/migration/0.9.1/mailman_update.py [new file with mode: 0755]

index b7b2faa..d9d8666 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,19 @@
 ================================================================================
-VERSION 0.9.0
+VERSION 0.9.1                                                                                                          ~30 Oct 2004
+
+Changes :
+
+       * Lists :
+               - auto-moderate/discard mails tagged by bogofilter                                      -MC
+
+Fixes (from 0.9.0 branch) :
+
+       * Lists :
+               - corrects problem about mails that have non text/* parts                       -MC
+               - rpc daemon can live everywhere                                                                        -MC
+
+================================================================================
+VERSION 0.9.0                                                                                                       15 Oct 2004
 
 Changes :
 
diff --git a/scripts/migration/0.9.1/mailman_update.py b/scripts/migration/0.9.1/mailman_update.py
new file mode 100755 (executable)
index 0000000..44b7d8e
--- /dev/null
@@ -0,0 +1,66 @@
+#!/usr/bin/env python
+#***************************************************************************
+#*  Copyright (C) 2004 polytechnique.org                                   *
+#*  http://opensource.polytechnique.org/                                   *
+#*                                                                         *
+#*  This program is free software; you can redistribute it and/or modify   *
+#*  it under the terms of the GNU General Public License as published by   *
+#*  the Free Software Foundation; either version 2 of the License, or      *
+#*  (at your option) any later version.                                    *
+#*                                                                         *
+#*  This program is distributed in the hope that it will be useful,        *
+#*  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
+#*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
+#*  GNU General Public License for more details.                           *
+#*                                                                         *
+#*  You should have received a copy of the GNU General Public License      *
+#*  along with this program; if not, write to the Free Software            *
+#*  Foundation, Inc.,                                                      *
+#*  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
+#***************************************************************************
+#   $Id: mailman_update.py,v 1.1 2004-10-16 11:50:29 x2000habouzit Exp $
+#***************************************************************************
+
+import base64, MySQLdb, os, getopt, sys, MySQLdb.converters, sha
+
+sys.path.append('/usr/lib/mailman/bin')
+
+from pwd import getpwnam
+from grp import getgrnam
+
+from SimpleXMLRPCServer import SimpleXMLRPCServer
+from SimpleXMLRPCServer import SimpleXMLRPCRequestHandler
+
+import paths
+from Mailman import MailList
+from Mailman import Utils
+from Mailman import Message
+from Mailman import Errors
+from Mailman import mm_cfg
+from Mailman import i18n
+from Mailman.UserDesc import UserDesc
+from Mailman.ListAdmin import readMessage
+from email.Iterators import typed_subpart_iterator
+
+names = Utils.list_names()
+for listname in names:
+    try:
+        mlist = MailList.MailList(listname,lock=0)
+    except:
+        print 'ERROR '+listname
+        continue
+    try:
+        print 'BEGIN '+listname
+        mlist.Lock()
+        mlist.header_filter_rules = []
+        mlist.header_filter_rules.append(('X-Spam-Flag: Yes, tests=bogofilter', mm_cfg.HOLD, False))
+        print '      set new bogofilter policy'
+        mlist.Save()
+        mlist.Unlock()
+        print 'END'
+    except:
+        mlist.Unlock()
+        print 'ERROR '+listname
+
+
+# vim:set et: