Cette page présente quelques notes concernant Mailman.
Une petite modification, applicable à Mailman 2.1.11 (Debian/Lenny) et 2.1.13 (Debian/Squeeze), pour afficher le nombre de membres de chaque liste sur la page de la liste des listes :
1 --- /usr/lib/mailman/Mailman/Cgi/listinfo.py.orig 2011-02-17 02:55:48.000000000 +0700
2 +++ /usr/lib/mailman/Mailman/Cgi/listinfo.py 2012-04-28 10:28:04.000000000 +0700
3 @@ -94,7 +94,9 @@
4 else:
5 advertised.append((mlist.GetScriptURL('listinfo'),
6 mlist.real_name,
7 - Utils.websafe(mlist.description)))
8 + Utils.websafe(mlist.description),
9 + len(mlist.members),
10 + len(mlist.digest_members) ))
11 if msg:
12 greeting = FontAttr(msg, color="ff5060", size="+1")
13 else:
14 @@ -137,9 +139,11 @@
15 Bold(FontAttr(_('Description'), size='+2'))
16 ])
17 highlight = 1
18 - for url, real_name, description in advertised:
19 + for url, real_name, description, n_members, n_digest_members in advertised:
20 + members_info = '(%s members + %s digest members)' % (n_members, n_digest_members)
21 table.AddRow(
22 - [Link(url, Bold(real_name)),
23 + [Container(Link(url, Bold(real_name)), ' ',
24 + Italic(FontAttr(members_info, size='-2'))),
25 description or Italic(_('[no description available]'))])
26 if highlight and mm_cfg.WEB_HIGHLIGHT_COLOR:
27 table.AddRowInfo(table.GetCurrentRowIndex(),