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
|
(module
|
||||||
mailman-common
|
mailman-common
|
||||||
(
|
(
|
||||||
|
make-mailman-list
|
||||||
|
|
||||||
mailman-list-name
|
mailman-list-name
|
||||||
mailman-list-members
|
mailman-list-members
|
||||||
|
|
||||||
|
@ -37,6 +39,11 @@
|
||||||
(import scheme
|
(import scheme
|
||||||
util-bst-lset)
|
util-bst-lset)
|
||||||
|
|
||||||
|
;; Creates a representation of basic mailman list information
|
||||||
|
(define (make-mailman-list name members)
|
||||||
|
(cons name
|
||||||
|
members))
|
||||||
|
|
||||||
;; Simple accessors
|
;; Simple accessors
|
||||||
(define mailman-list-name car)
|
(define mailman-list-name car)
|
||||||
(define mailman-list-members cdr)
|
(define mailman-list-members cdr)
|
||||||
|
|
|
@ -83,11 +83,6 @@
|
||||||
(get-mailman-output-lines "list_members" lst)
|
(get-mailman-output-lines "list_members" lst)
|
||||||
string-ci<?))
|
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
|
;; Loads a single mailman list as mailman structure, if
|
||||||
;; unsuccessfull, returns only a list with ML name and no member
|
;; unsuccessfull, returns only a list with ML name and no member
|
||||||
;; emails.
|
;; emails.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue