Mailman utility functions.
This commit is contained in:
parent
98ab786ded
commit
8e661aae1c
1 changed files with 10 additions and 4 deletions
|
@ -129,17 +129,23 @@
|
|||
(sprintf "<<<\"~A\"" email))))
|
||||
(print result)))
|
||||
|
||||
;; Removes given email from given listname
|
||||
(define (remove-email-from-mailman-list listname email)
|
||||
#f)
|
||||
(let ((result
|
||||
(get-mailman-output-lines
|
||||
"remove_members" (car listname)
|
||||
(sprintf "\"~A\"" email))))
|
||||
(print result)))
|
||||
|
||||
;; Ensures given email is in given ML
|
||||
(define (mailman-ensure-member ml email)
|
||||
|
||||
#f)
|
||||
(when (not (email-in-mailman-list? ml email))
|
||||
(add-email-to-mailman-list (mailman-list-name ml) email)))
|
||||
|
||||
;; Makes sure given member is removed
|
||||
(define (mailman-ensure-not-member ml email)
|
||||
#f)
|
||||
(when (email-in-mailman-list? ml email)
|
||||
(remove-email-from-mailman-list (mailman-list-name ml) email)))
|
||||
|
||||
;; Ensures given ML subscribers are exactly what is in emails list
|
||||
(define (mailman-sync-members ml emails)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue