------------------------------------------------------------
revno: 1233
fixes bug: https://launchpad.net/bugs/1082711
committer: Mark Sapiro <[email protected]>
branch nick: 2.2
timestamp: Sat 2012-11-24 11:19:53 -0800
message:
list_lists now has an option to list only lists with public archives.
(LP: 1082711)
modified:
NEWS
bin/list_lists
--
lp:mailman/2.2
https://code.launchpad.net/~mailman-coders/mailman/2.2
Your team Mailman Checkins is subscribed to branch lp:mailman/2.2.
To unsubscribe from this branch go to
https://code.launchpad.net/~mailman-coders/mailman/2.2/+edit-subscription
=== modified file 'NEWS'
--- NEWS 2012-11-24 19:12:02 +0000
+++ NEWS 2012-11-24 19:19:53 +0000
@@ -62,6 +62,9 @@
- The name of the mailmanctl master lock file is now congigurable via the
mm_cfg.py setting MASTER_LOCK_FILE. (LP: 1082308)
+ - list_lists now has an option to list only lists with public archives.
+ (LP: 1082711)
+
i18n
- German message catalog has been updated per Ralf Hildebrandt.
=== modified file 'bin/list_lists'
--- bin/list_lists 2005-08-27 01:40:17 +0000
+++ bin/list_lists 2012-11-24 19:19:53 +0000
@@ -25,6 +25,9 @@
-a / --advertised
List only those mailing lists that are publically advertised
+ -p / --public-archive
+ List only those lists with public archives.
+
--virtual-host-overview=domain
-V domain
List only those mailing lists that are homed to the given virtual
@@ -65,14 +68,15 @@
def main():
try:
- opts, args = getopt.getopt(sys.argv[1:], 'abV:h',
- ['advertised', 'bare',
+ opts, args = getopt.getopt(sys.argv[1:], 'apbV:h',
+ ['advertised', 'public-archive', 'bare',
'virtual-host-overview=',
'help'])
except getopt.error, msg:
usage(1, msg)
advertised = 0
+ public = 0
vhost = None
bare = 0
for opt, arg in opts:
@@ -80,6 +84,8 @@
usage(0)
elif opt in ('-a', '--advertised'):
advertised = 1
+ elif opt in ('-p', '--public-archive'):
+ public = 1
elif opt in ('-V', '--virtual-host-overview'):
vhost = arg
elif opt in ('-b', '--bare'):
@@ -94,6 +100,8 @@
mlist = MailList.MailList(n, lock=0)
if advertised and not mlist.advertised:
continue
+ if public and mlist.archive_private:
+ continue
if vhost and mm_cfg.VIRTUAL_HOST_OVERVIEW and \
vhost.find(mlist.web_page_url) == -1 and \
mlist.web_page_url.find(vhost) == -1:
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org