Fix missing URLs at the end of the default footer message
authorx2002marichez <x2002marichez@839d8a87-29fc-0310-9880-83ba4fa771e5>
Thu, 26 Oct 2006 12:48:35 +0000 (12:48 +0000)
committerx2002marichez <x2002marichez@839d8a87-29fc-0310-9880-83ba4fa771e5>
Thu, 26 Oct 2006 12:48:35 +0000 (12:48 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1028 839d8a87-29fc-0310-9880-83ba4fa771e5

bin/lists.rpc.py

index 6a855fa..b2bc053 100755 (executable)
@@ -808,8 +808,10 @@ def create_list(userdesc, perms, vhost, listname, desc, advertise, modlevel, ins
         mlist.subject_prefix = '['+listname+'] '
         mlist.max_message_size = 0
 
+        inverted_listname = '_'.join(listname.split('_', 1)[-1::-1])
         mlist.msg_footer = "_______________________________________________\n" \
-                         + "Liste de diffusion %(real_name)s\n"
+                         + "Liste de diffusion %(real_name)s\n" \
+                         + "http://listes.polytechnique.org/members/" + inverted_listname
 
         mlist.header_filter_rules = []
         mlist.header_filter_rules.append(('X-Spam-Flag: Yes, tests=bogofilter', mm_cfg.HOLD, False))