Move mailman struct constructor to common module.
This commit is contained in:
parent
c2be1d518f
commit
1f9f2503ab
2 changed files with 7 additions and 5 deletions
|
@ -28,6 +28,8 @@
|
|||
(module
|
||||
mailman-common
|
||||
(
|
||||
make-mailman-list
|
||||
|
||||
mailman-list-name
|
||||
mailman-list-members
|
||||
|
||||
|
@ -37,6 +39,11 @@
|
|||
(import scheme
|
||||
util-bst-lset)
|
||||
|
||||
;; Creates a representation of basic mailman list information
|
||||
(define (make-mailman-list name members)
|
||||
(cons name
|
||||
members))
|
||||
|
||||
;; Simple accessors
|
||||
(define mailman-list-name car)
|
||||
(define mailman-list-members cdr)
|
||||
|
|
|
@ -83,11 +83,6 @@
|
|||
(get-mailman-output-lines "list_members" lst)
|
||||
string-ci<?))
|
||||
|
||||
;; Creates a representation of basic mailman list information
|
||||
(define (make-mailman-list name members)
|
||||
(cons name
|
||||
members))
|
||||
|
||||
;; Loads a single mailman list as mailman structure, if
|
||||
;; unsuccessfull, returns only a list with ML name and no member
|
||||
;; emails.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue