Checkpoint commit.

- Add the majority of the list behavioral knobs.
 - Add some quick helpers that can make list changes
   safely (write, unlink, touch)
 - Fix tests.
This commit is contained in:
Mahlon E. Smith 2017-02-06 11:54:16 -08:00
parent 5a524b55bf
commit 7e2a6fe771
32 changed files with 968 additions and 627 deletions

1
spec/data/testlist/Log Normal file
View file

@ -0,0 +1 @@
1485642996 +manual mahlon@laika.com

View file

View file

@ -0,0 +1,2 @@
|/usr/local/bin/ezmlm-weed
|/usr/local/bin/ezmlm-return -D '/tmp/woo/test'

View file

@ -0,0 +1,5 @@
|/usr/local/bin/ezmlm-weed
|if test -f '/tmp/woo/test/subpostonly' -a -f '/tmp/woo/test/modpost'; then /usr/local/bin/ezmlm-confirm '/tmp/woo/test' /usr/local/bin/ezmlm-gate -Y '/tmp/woo/test' . digest allow mod; else /usr/local/bin/ezmlm-confirm '/tmp/woo/test' /usr/local/bin/ezmlm-store -Y '/tmp/woo/test'; fi
|if test -f '/tmp/woo/test/threaded'; then /usr/local/bin/ezmlm-archive '/tmp/woo/test' || exit 0; fi
|/usr/local/bin/ezmlm-clean '/tmp/woo/test' || exit 0
|/usr/local/bin/ezmlm-warn '/tmp/woo/test' || exit 0

View file

@ -0,0 +1 @@
10

View file

@ -0,0 +1,2 @@
|/usr/local/bin/ezmlm-weed
|/usr/local/bin/ezmlm-return -d '/tmp/woo/test'

View file

View file

View file

@ -0,0 +1 @@

1
spec/data/testlist/dot Normal file
View file

@ -0,0 +1 @@
/tmp/woo/.qmail-test

10
spec/data/testlist/editor Normal file
View file

@ -0,0 +1,10 @@
|if test ! -f '/tmp/woo/test/sublist'; then /usr/local/bin/ezmlm-reject '/tmp/woo/test'; fi
|if test ! -f '/tmp/woo/test/sublist'; then /usr/local/bin/ezmlm-checksub -n '/tmp/woo/test' deny; fi
|if test ! -f '/tmp/woo/test/subpostonly'; then /usr/local/bin/ezmlm-store '/tmp/woo/test'; fi
|if test -f '/tmp/woo/test/subpostonly' -a ! -f '/tmp/woo/test/modpost'; then /usr/local/bin/ezmlm-checksub '/tmp/woo/test' . digest allow mod && /usr/local/bin/ezmlm-store '/tmp/woo/test'; fi
|if test -f '/tmp/woo/test/subpostonly' -a -f '/tmp/woo/test/modpost' -a ! -f '/tmp/woo/test/confirmpost'; then /usr/local/bin/ezmlm-gate '/tmp/woo/test' . digest allow mod; fi
|if test -f '/tmp/woo/test/subpostonly' -a -f '/tmp/woo/test/modpost' -a -f '/tmp/woo/test/confirmpost'; then /usr/local/bin/ezmlm-store '/tmp/woo/test'; fi
|/usr/local/bin/ezmlm-clean '/tmp/woo/test' || exit 0
|if test -f '/tmp/woo/test/threaded'; then /usr/local/bin/ezmlm-archive '/tmp/woo/test' || exit 0; fi
|/usr/local/bin/ezmlm-warn '/tmp/woo/test' || exit 0
|if test -e '/tmp/woo/test/digested' && /usr/local/bin/ezmlm-tstdig '/tmp/woo/test'; then /usr/local/bin/ezmlm-get '/tmp/woo/test' || exit 0; fi

View file

@ -0,0 +1 @@

View file

@ -0,0 +1,7 @@
Sender: <<#l#>@<#h#>>
Precedence: bulk
X-No-Archive: yes
List-Post: <mailto:test@lists.laika.com>
List-Help: <mailto:<#l#>-help@<#h#>>
List-Unsubscribe: <mailto:<#l#>-unsubscribe@<#h#>>
List-Subscribe: <mailto:<#l#>-subscribe@<#h#>>

View file

@ -0,0 +1,11 @@
return-path
return-receipt-to
content-length
precedence
x-confirm-reading-to
x-pmrqc
list-subscribe
list-unsubscribe
list-help
list-post
sender

View file

BIN
spec/data/testlist/key Normal file

Binary file not shown.

0
spec/data/testlist/lock Normal file
View file

View file

View file

@ -0,0 +1,7 @@
|/usr/local/bin/ezmlm-weed
|/usr/local/bin/ezmlm-get '/tmp/woo/test'
|/usr/local/bin/ezmlm-split '/tmp/woo/test'
|/usr/local/bin/ezmlm-request '/tmp/woo/test'
|/usr/local/bin/ezmlm-manage '/tmp/woo/test'
|/usr/local/bin/ezmlm-clean '/tmp/woo/test' || exit 0
|/usr/local/bin/ezmlm-warn '/tmp/woo/test' || exit 0

View file

@ -0,0 +1,5 @@
|/usr/local/bin/ezmlm-weed
|/usr/local/bin/ezmlm-moderate '/tmp/woo/test'
|if test -f '/tmp/woo/test/threaded'; then /usr/local/bin/ezmlm-archive '/tmp/woo/test' || exit 0; fi
|/usr/local/bin/ezmlm-clean '/tmp/woo/test' || exit 0
|/usr/local/bin/ezmlm-warn '/tmp/woo/test' || exit 0

View file

@ -0,0 +1 @@
lists.syrup.info

View file

@ -0,0 +1 @@
waffle-lovers

1
spec/data/testlist/owner Normal file
View file

@ -0,0 +1 @@
/tmp/woo/test/Mailbox

View file