<testcase>
<info>
<keywords>
-SMTP
-SMTP AUTH PLAIN
-RFC4616
-RFC4954
+IMAP
+Clear Text
+APPEND
+UPLOAD
</keywords>
</info>
#
# Server-side
<reply>
-<servercmd>
-REPLY EHLO 220 AUTH PLAIN
-REPLY AUTH 235 Authenticated
-</servercmd>
</reply>
#
# Client-side
<client>
<server>
-smtp
+imap
</server>
<name>
-SMTP plain authentication
+IMAP APPEND message
</name>
-<stdin>
-mail body
-</stdin>
<command>
-smtp://%HOSTIP:%SMTPPORT/user --mail-rcpt 805@foo --mail-from 805@from -u test:1234 -T -
+imap://%HOSTIP:%IMAPPORT/805 -T log/upload805 -u user:secret
</command>
+<file name="log/upload805">
+Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST)\r
+From: Fred Foobar <foobar@example.COM>\r
+Subject: afternoon meeting\r
+To: joe@example.com\r
+Message-Id: <B27397-0100000@example.COM>\r
+MIME-Version: 1.0\r
+Content-Type: TEXT/PLAIN; CHARSET=US-ASCII\r
+\r
+Hello Joe, do you think we can meet at 3:30 tomorrow?\r
+</file>
</client>
#
# Verify data after the test has been "shot"
<verify>
<protocol>
-EHLO user\r
-AUTH PLAIN dGVzdAB0ZXN0ADEyMzQ=\r
-MAIL FROM:805@from\r
-RCPT TO:<805@foo>\r
-DATA\r
-QUIT\r
+A001 CAPABILITY\r
+A002 LOGIN user secret\r
+A003 APPEND 805 (\Seen) {295}\r
+A004 LOGOUT\r
</protocol>
<upload>
-mail body
+Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST)\r
+From: Fred Foobar <foobar@example.COM>\r
+Subject: afternoon meeting\r
+To: joe@example.com\r
+Message-Id: <B27397-0100000@example.COM>\r
+MIME-Version: 1.0\r
+Content-Type: TEXT/PLAIN; CHARSET=US-ASCII\r
\r
-.\r
+Hello Joe, do you think we can meet at 3:30 tomorrow?\r
</upload>
</verify>
</testcase>