diff options
| author | Sam Varshavchik | 2015-12-19 12:08:37 -0500 |
|---|---|---|
| committer | Sam Varshavchik | 2015-12-19 12:08:37 -0500 |
| commit | fc74b7bc645d74c9fc87fa63345b6c6840c73bca (patch) | |
| tree | 519885c20743c188918eb32e044ac2d7e609ab86 /maildrop/testsuite.in | |
| parent | 08727afd05a6a6f5daa7f1fb293be038d43c4ef8 (diff) | |
| download | courier-libs-fc74b7bc645d74c9fc87fa63345b6c6840c73bca.tar.bz2 | |
maildrop: implement FLAGS
Diffstat (limited to 'maildrop/testsuite.in')
| -rw-r--r-- | maildrop/testsuite.in | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/maildrop/testsuite.in b/maildrop/testsuite.in index 967cd8f..81b80a7 100644 --- a/maildrop/testsuite.in +++ b/maildrop/testsuite.in @@ -56,11 +56,28 @@ EOF fi +rm -rf testsuite.maildir +../maildir/maildirmake ./testsuite.maildir + +cat <<EOF >testsuite.recipe + +FLAGS="S" +to "$PWD/testsuite.maildir" +EOF + +chmod go-rw testsuite.recipe + +echo "To: testsuite" | ./maildrop ./testsuite.recipe + +echo "2,S" >testsuite.chk + +ls testsuite.maildir/cur | sed 's/.*://' | diff -U 3 - testsuite.chk + if test "@maildirquota@" = 1 then rm -rf testsuite.maildir ../maildir/maildirmake ./testsuite.maildir - + cat <<EOF >testsuite.recipe MAILDIRQUOTA="1C" @@ -530,3 +547,4 @@ rm -f testsuite.chk rm -f testmailbot.msg rm -f testmailbot.1 rm -f testsuite.dat +rm -rf testsuite.maildir |
