Select only member role member.
This commit is contained in:
parent
fde185ff6f
commit
73220682bd
1 changed files with 4 additions and 3 deletions
|
@ -60,12 +60,13 @@
|
||||||
(define (list-mailman3-sql-list-members lst)
|
(define (list-mailman3-sql-list-members lst)
|
||||||
(let-values (((stmt _)
|
(let-values (((stmt _)
|
||||||
(prepare (mailman3-db)
|
(prepare (mailman3-db)
|
||||||
"SELECT address.email
|
"SELECT DISTINCT address.email
|
||||||
FROM member
|
FROM member
|
||||||
LEFT JOIN address
|
LEFT JOIN address
|
||||||
ON member.address_id=address.id
|
ON member.address_id=address.id
|
||||||
WHERE list_id=?")))
|
WHERE list_id=? AND role=1")))
|
||||||
(map-row identity stmt
|
(map-row identity
|
||||||
|
stmt
|
||||||
(format "~A.brmlab.cz" lst))))
|
(format "~A.brmlab.cz" lst))))
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue