]> granicus.if.org Git - curl/commitdiff
tests: Added test for SMTP SIZE capability
authorSteve Holme <steve_holme@hotmail.com>
Sun, 15 Sep 2013 22:22:42 +0000 (23:22 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 15 Sep 2013 23:24:30 +0000 (00:24 +0100)
tests/data/Makefile.am
tests/data/test912 [new file with mode: 0644]

index 2d5fe4224a4b9f480ccf405410310468a3b18494..d11ce61a35036f8b58932778e818474c4b3b6f41 100644 (file)
@@ -70,7 +70,7 @@ test850 test851 test852 test853 test854 test855 test856 test857 test858 \
 test859 test860 test861 test862 \
 \
 test900 test901 test902 test903 test904 test905 test906 test907 test908 \
-test909 test910 test911 \
+test909 test910 test911 test912 \
 \
 test1000 test1001 test1002 test1003 test1004 test1005 test1006 test1007 \
 test1008 test1009 test1010 test1011 test1012 test1013 test1014 test1015 \
diff --git a/tests/data/test912 b/tests/data/test912
new file mode 100644 (file)
index 0000000..beea8a2
--- /dev/null
@@ -0,0 +1,55 @@
+<testcase>
+<info>
+<keywords>
+SMTP
+SIZE\r
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+<servercmd>
+CAPA SIZE
+</servercmd>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+smtp
+</server>
+ <name>
+SMTP with SIZE support
+ </name>
+<file name="log/test912.eml">
+From: different\r
+To: another\r
+\r
+body\r
+</file>
+ <command>
+smtp://%HOSTIP:%SMTPPORT/user --mail-rcpt 912@foo --mail-from 912@from -T log/test912.eml
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+EHLO user\r
+MAIL FROM:<912@from> SIZE=38\r
+RCPT TO:<912@foo>\r
+DATA\r
+QUIT\r
+</protocol>
+<upload>
+From: different\r
+To: another\r
+\r
+body\r
+.\r
+</upload>
+</verify>
+</testcase>