Testsuite: (named queues) add testcase for 3rd-party queue transfer
authorJeremy Harris <jgh146exb@wizmail.org>
Fri, 14 Oct 2016 12:57:01 +0000 (13:57 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Fri, 14 Oct 2016 12:57:01 +0000 (13:57 +0100)
test/log/0576
test/runtest
test/scripts/0000-Basic/0576
test/stdout/0576

index 373f1d32009ca8024bf5fc37202594da7afdaa96..8c1cb73dfd0a81fee40c255079f9cfe35656cd27 100644 (file)
 1999-03-02 09:44:33 End 'alternate' queue run: pid=pppp
 1999-03-02 09:44:33 using queue 'lowpri'
 1999-03-02 09:44:33 10HmaZ-0005vi-00 <= CALLER@the.local.host.name U=CALLER P=local-smtp S=sss Q=lowpri for lowpri@test.ex
+1999-03-02 09:44:33 using queue 'alternate'
+1999-03-02 09:44:33 10HmbA-0005vi-00 <= CALLER@the.local.host.name U=CALLER P=local-smtp S=sss Q=alternate for alternate@test.ex
+1999-03-02 09:44:33 Start queue run: pid=pppp
+1999-03-02 09:44:33 10HmbA-0005vi-00 => alternate <alternate@test.ex> F=<CALLER@the.local.host.name> R=all T=dump
+1999-03-02 09:44:33 10HmbA-0005vi-00 Completed
+1999-03-02 09:44:33 End queue run: pid=pppp
 
 ******** SERVER ********
 1999-03-02 09:44:33 exim x.yz daemon started: pid=pppp, -qGlowpri/3s, not listening for SMTP
index b4c66840a5aa07f94f282b38d6c7bdd81d25f56c..e2ce876f0f7faa647d9254fc3a5b414c094394ca 100755 (executable)
@@ -1969,7 +1969,7 @@ if (/^sleep\s+(.*)$/)
 # Various Unix management commands are recognized
 
 if (/^(ln|ls|du|mkdir|mkfifo|touch|cp|cat)\s/ ||
-    /^sudo\s(rmdir|rm|chown|chmod)\s/)
+    /^sudo\s(rmdir|rm|mv|chown|chmod)\s/)
   {
   run_system("$_ >>test-stdout 2>>test-stderr");
   return 1;
index 144f02c483b17265c9433c89d0124fcf9dc2b8e8..6f01d9aae371f6a45e644154c200eb6052029eb7 100644 (file)
@@ -46,7 +46,20 @@ foo
 .
 QUIT
 ****
-#
 sleep 3
-#
 killdaemon
+#
+# third-party queue transfer
+exim -bs
+MAIL FROM:<CALLER@myhost.test.ex>
+RCPT TO: <alternate@test.ex>
+DATA
+Subject: test
+
+foo
+.
+QUIT
+****
+# 
+sudo mv DIR/spool/alternate/input/* DIR/spool/input/
+exim -q
index 608078ed1cb1b524af49bcf77c0604838f987368..527865b62922446ef684f222458d58ec00ee7ce5 100644 (file)
@@ -15,3 +15,9 @@
 354 Enter message, ending with "." on a line by itself\r
 250 OK id=10HmaZ-0005vi-00\r
 221 the.local.host.name closing connection\r
+220 the.local.host.name ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000\r
+250 OK\r
+250 Accepted\r
+354 Enter message, ending with "." on a line by itself\r
+250 OK id=10HmbA-0005vi-00\r
+221 the.local.host.name closing connection\r