Implement listing list members for mailman3.
This commit is contained in:
parent
6af6349a1e
commit
d802cf13c8
2 changed files with 10 additions and 1 deletions
|
@ -29,10 +29,12 @@
|
|||
mailman3
|
||||
(
|
||||
list-mailman3-lists
|
||||
list-mailman3-list-members
|
||||
)
|
||||
|
||||
(import scheme
|
||||
(chicken string)
|
||||
(chicken sort)
|
||||
configuration
|
||||
util-io)
|
||||
|
||||
|
@ -51,4 +53,10 @@
|
|||
(define (list-mailman3-lists)
|
||||
(get-mailman3-output-lines "lists -q"))
|
||||
|
||||
;; Returns the list of members of given list
|
||||
(define (list-mailman3-list-members lst)
|
||||
(sort
|
||||
(get-mailman3-output-lines "members" lst "-e")
|
||||
string-ci<?))
|
||||
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue