Skip to content
Snippets Groups Projects
Commit ab72e390 authored by Conrad Holmberg's avatar Conrad Holmberg
Browse files

Added option to list all maillists.

parent 10359af1
No related branches found
No related tags found
No related merge requests found
......@@ -19,8 +19,9 @@ if __name__ == '__main__':
LIST_NAME= 'apachesvn@lists.med.stanford.edu' # just a tesing default
# user invoked variables
parser.add_argument('--dump', action='store_true', default=False)
parser.add_argument('--list', help="Shows the email lists. (i.e.,apachesvn@lists.med.stanford.edu )")
parser.add_argument('--dump', action='store_true', default=False, help='Dumps a full member list.')
parser.add_argument('--list', help='Shows the email lists. (i.e.,apachesvn@lists.med.stanford.edu )')
parser.add_argument('--dump', action='store_true', default=False, help='Dumps a full member list.')
# Add arguments for env variables
parser.add_argument('--core-uri', dest='core_uri',default=CORE_URI)
......@@ -46,7 +47,7 @@ if __name__ == '__main__':
print json.dumps(members_hash, indent=2)
elif args.list:
for mlists in client.lists:
for mlist in client.lists:
print(mlist.fqdn_listname)
# elif args.set:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment