summaryrefslogtreecommitdiff
path: root/test/scripts/9400-local_scan
diff options
context:
space:
mode:
authorPhilip Hazel <ph10@hermes.cam.ac.uk>2006-02-07 10:54:33 +0000
committerPhilip Hazel <ph10@hermes.cam.ac.uk>2006-02-07 10:54:33 +0000
commit59371ea735c941334861aa5b8e1e9a06facf044f (patch)
tree79168561a70a94a3994fbe362b904ff9aab86136 /test/scripts/9400-local_scan
parent54c5ebb14ead7439af300e9d7d9d7d2ba29ff32e (diff)
Hopefully the final lot of test files.
Diffstat (limited to 'test/scripts/9400-local_scan')
-rw-r--r--test/scripts/9400-local_scan/9400360
-rw-r--r--test/scripts/9400-local_scan/940114
-rw-r--r--test/scripts/9400-local_scan/940236
3 files changed, 410 insertions, 0 deletions
diff --git a/test/scripts/9400-local_scan/9400 b/test/scripts/9400-local_scan/9400
new file mode 100644
index 000000000..aa5bc9214
--- /dev/null
+++ b/test/scripts/9400-local_scan/9400
@@ -0,0 +1,360 @@
+# local_scan() miscellaneous tests
+exim -odi -bs
+mail from:<x@y>
+rcpt to:<userx@test.ex>
+data
+Testing, testing
+.
+quit
+****
+exim -odi -bs
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+Testing, testing
+.
+quit
+****
+exim -odi -bs
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan: reject
+Testing, testing
+.
+quit
+****
+exim -odi -bs
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan: reject this message isn't wanted
+Testing, testing
+.
+quit
+****
+exim -odi -bs
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan: reject this message isn't wanted
+ and we tell it on two lines
+Testing, testing
+.
+quit
+****
+exim -odi -bs
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan: tempreject
+Testing, testing
+.
+quit
+****
+exim -odi -bs
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan: tempreject this message isn't wanted just now
+Testing, testing
+.
+quit
+****
+exim -odi -bs
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan: sendto
+Testing, testing
+.
+quit
+****
+exim -odi -bs
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan: sendto usery@test.ex
+Testing, testing, was originally to userx.
+.
+quit
+****
+exim -odi -bs
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan: sendto *this is a blackhole message*
+Testing, testing, was originally to userx.
+.
+quit
+****
+1
+exim -odi -f test-local-scan@y userx@test.ex
+local-scan: reject this message isn't wanted
+Testing, testing, local message (1)
+.
+****
+exim -odi -oee -f test-local-scan@y userx@test.ex
+local-scan: reject this message isn't wanted
+Testing, testing, local message (2)
+.
+****
+1
+exim -odi -oep -f test-local-scan@y userx@test.ex
+local-scan: reject this message isn't wanted
+Testing, testing, local message (3)
+.
+****
+exim -odi -bs
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan: accept A=orses b=mutton
+Testing, testing
+.
+quit
+****
+1
+exim -odi -bs
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan:timeout
+test test
+.
+quit
+****
+1
+exim -odi -oep -f test-local-scan@y userx@test.ex
+local-scan: timeout
+test test
+.
+****
+exim -odi -bs
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan: sendto bounce@test.ex exbounce@test.ex
+Testing, testing, was originally to userx.
+Sent to bounce@test.ex; bounce should go to exbounce.
+.
+quit
+****
+2
+exim -odi -bS
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan: reject not wanted -bS
+Testing, testing
+.
+quit
+****
+exim -odi -bs
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan: accept A=orses b=mutton
+ c=forthighlanders
+ some newlines in here
+Testing, testing
+.
+quit
+****
+exim -odi -N -d-all+receive -bs
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+.
+quit
+****
+exim -odi -N -d-all+local_scan -bs
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+.
+quit
+****
+2
+exim -odi -bS
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan: reject_nologhdr not wanted -bS
+Testing, testing
+.
+quit
+****
+exim -odi -bs
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan: tempreject_nologhdr
+Testing, testing
+.
+quit
+****
+exim -odi -bs
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan: accept_expand sender=$sender_address
+Testing, testing
+.
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan: accept_expand sender=$rhubarb
+Testing, testing
+.
+quit
+****
+exim -bP local_scan
+****
+exim -odi -bs
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan: accept_freeze
+Testing, testing
+.
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan: accept_queue
+Testing, testing
+.
+quit
+****
+exim -bp
+****
+exim -d-all+local_scan -bh 1.2.3.4
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan: accept_freeze
+Testing, testing
+.
+quit
+****
+exim -d-all+local_scan -bh 1.2.3.4
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan: accept_test_lists
+Testing, testing
+.
+quit
+****
+1
+exim -d-all+local_scan -odi -bs
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan: crash
+Testing, testing
+.
+quit
+****
+ls DIR/spool/input
+exim -odq -bs
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan: sendto unqualified
+Testing, testing, was originally to userx.
+Sent to unqualified address
+.
+quit
+****
+exim -bp
+****
+exim -M $msg3
+****
+exim -odi -bs
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan: header_remove 2 remove-me
+remove-me: this is the first one
+remove-me : this is the second one
+remove-me : this is the third one
+
+Testing, testing
+.
+quit
+****
+exim -odi -bs
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan: header_remove 0 remove-me
+remove-me: this is the first one
+remove-me : this is the second one
+remove-me : this is the third one
+
+Testing, testing
+.
+quit
+****
+exim -odi -bs
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan: header_add_at_position TT received X-new: added
+
+Testing, testing
+.
+quit
+****
+exim -odi -bs
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan: header_add_at_position FT received X-new: added
+
+Testing, testing
+.
+quit
+****
+exim -odi -bs
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan: header_add_at_position FT From X-new: added
+
+Testing, testing
+.
+quit
+****
+exim -odi -bs
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan: header_add_at_position FT Non-exist X-new: added
+
+Testing, testing
+.
+quit
+****
+exim -odi -bs
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan: remove userx@test.ex
+
+Testing, testing
+.
+quit
+****
+exim -odi -bs
+mail from:<test-local-scan@y>
+rcpt to:<userx@test.ex>
+data
+local-scan: remove abcd@test.ex
+
+Testing, testing
+.
+quit
+****
+no_msglog_check
diff --git a/test/scripts/9400-local_scan/9401 b/test/scripts/9400-local_scan/9401
new file mode 100644
index 000000000..c310d09a4
--- /dev/null
+++ b/test/scripts/9400-local_scan/9401
@@ -0,0 +1,14 @@
+# -R and spool pollution
+exim -odq -f test-local-scan@test.ex userx
+local-scan: accept This is text for the local scan returned header
+ and I am going to make sure that it is quite long
+****
+exim -odq userx
+Message 2
+.
+****
+exim -Rf userx
+****
+sudo perl DIR/aux-fixed/9401.perl
+****
+no_msglog_check
diff --git a/test/scripts/9400-local_scan/9402 b/test/scripts/9400-local_scan/9402
new file mode 100644
index 000000000..a4345acce
--- /dev/null
+++ b/test/scripts/9400-local_scan/9402
@@ -0,0 +1,36 @@
+# local_scan() smtp_printf() and smtp_fflush()
+need_ipv4
+#
+exim -DSERVER=server -bd -oX PORT_D
+****
+client -t2 127.0.0.1 PORT_D
+??? 220
+ehlo foobar
+??? 250-
+??? 250-
+??? 250-
+??? 250
+mail from:<test-local-scan@y>
+??? 250
+rcpt to:<x@y>
+??? 250
+data
+??? 354
+local-scan: reject rhubarb rhubarb
+.
+??? 550
+mail from:<test-local-scan@y>
+??? 250
+rcpt to:<x@y>
+??? 250
+data
+??? 354
+local-scan: teergrube
+.
+??? 550-
+??? 550-
+****
+# Wait because of the teergrube
+sleep 3
+killdaemon
+no_msglog_check