IMAP
STARTTLS
#
# Server-side
CAPA STARTTLS
REPLY STARTTLS A002 BAD currently unavailable\r\nA003 OK Authenticated\r\nA004 OK Accepted
REPLY LOGIN A003 BAD Authentication credentials invalid
#
# Client-side
SSL
imap
IMAP STARTTLS pipelined server response
imap://%HOSTIP:%IMAPPORT/%TESTNUMBER -T log/upload%TESTNUMBER -u user:secret --ssl
Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST)
From: Fred Foobar
Subject: afternoon meeting
To: joe@example.com
Message-Id:
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Hello Joe, do you think we can meet at 3:30 tomorrow?
#
# Verify data after the test has been "shot"
# 8 is CURLE_WEIRD_SERVER_REPLY
8
A001 CAPABILITY
A002 STARTTLS