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:
parent
5a524b55bf
commit
7e2a6fe771
32 changed files with 968 additions and 627 deletions
1
spec/data/testlist/Log
Normal file
1
spec/data/testlist/Log
Normal file
|
|
@ -0,0 +1 @@
|
|||
1485642996 +manual mahlon@laika.com
|
||||
0
spec/data/testlist/archived
Normal file
0
spec/data/testlist/archived
Normal file
2
spec/data/testlist/bouncer
Normal file
2
spec/data/testlist/bouncer
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
|/usr/local/bin/ezmlm-weed
|
||||
|/usr/local/bin/ezmlm-return -D '/tmp/woo/test'
|
||||
5
spec/data/testlist/confirmer
Normal file
5
spec/data/testlist/confirmer
Normal 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
|
||||
1
spec/data/testlist/digcount
Normal file
1
spec/data/testlist/digcount
Normal file
|
|
@ -0,0 +1 @@
|
|||
10
|
||||
2
spec/data/testlist/digest/bouncer
Normal file
2
spec/data/testlist/digest/bouncer
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
|/usr/local/bin/ezmlm-weed
|
||||
|/usr/local/bin/ezmlm-return -d '/tmp/woo/test'
|
||||
0
spec/data/testlist/digest/lock
Normal file
0
spec/data/testlist/digest/lock
Normal file
0
spec/data/testlist/digest/lockbounce
Normal file
0
spec/data/testlist/digest/lockbounce
Normal file
1
spec/data/testlist/digestcode
Normal file
1
spec/data/testlist/digestcode
Normal file
|
|
@ -0,0 +1 @@
|
|||
|
||||
1
spec/data/testlist/dot
Normal file
1
spec/data/testlist/dot
Normal file
|
|
@ -0,0 +1 @@
|
|||
/tmp/woo/.qmail-test
|
||||
10
spec/data/testlist/editor
Normal file
10
spec/data/testlist/editor
Normal 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
|
||||
1
spec/data/testlist/ezmlmrc
Normal file
1
spec/data/testlist/ezmlmrc
Normal file
|
|
@ -0,0 +1 @@
|
|||
|
||||
7
spec/data/testlist/headeradd
Normal file
7
spec/data/testlist/headeradd
Normal 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#>>
|
||||
11
spec/data/testlist/headerremove
Normal file
11
spec/data/testlist/headerremove
Normal 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
|
||||
0
spec/data/testlist/indexed
Normal file
0
spec/data/testlist/indexed
Normal file
BIN
spec/data/testlist/key
Normal file
BIN
spec/data/testlist/key
Normal file
Binary file not shown.
0
spec/data/testlist/lock
Normal file
0
spec/data/testlist/lock
Normal file
0
spec/data/testlist/lockbounce
Normal file
0
spec/data/testlist/lockbounce
Normal file
7
spec/data/testlist/manager
Normal file
7
spec/data/testlist/manager
Normal 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
|
||||
5
spec/data/testlist/moderator
Normal file
5
spec/data/testlist/moderator
Normal 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
|
||||
1
spec/data/testlist/outhost
Normal file
1
spec/data/testlist/outhost
Normal file
|
|
@ -0,0 +1 @@
|
|||
lists.syrup.info
|
||||
1
spec/data/testlist/outlocal
Normal file
1
spec/data/testlist/outlocal
Normal file
|
|
@ -0,0 +1 @@
|
|||
waffle-lovers
|
||||
1
spec/data/testlist/owner
Normal file
1
spec/data/testlist/owner
Normal file
|
|
@ -0,0 +1 @@
|
|||
/tmp/woo/test/Mailbox
|
||||
0
spec/data/testlist/public
Normal file
0
spec/data/testlist/public
Normal file
Loading…
Add table
Add a link
Reference in a new issue