How to close IMAP APPEND command from a openssl connection
I would like to know how to close an APPEND command from the Unix Terminal. My goal is to create a Draft message on the Gmail IMAP server from the Mac Terminal or with JavaME. I've used the follow commands so far:
openssl s_client -crlf -connect imap.gmail.com:993 开发者_C百科... A1 LOGIN myaccount@gmail.com mypassword ... A2 SELECT "[Gmail]/Drafts" ... A3 APPEND "[Gmail]/Drafts" (\Seen) {310} + go ahead Date: Fri, 29 Apr 2011 10:00:00 -0800 (PST) ... Content-Type: TEXT-PLAIN; CHARSET=US-ASCII
Message Body
I tried to send a CRLF (\r\n) by using a socket connection and the Control+V, return, return in the Terminal.
{310} is the exactly number of message characters, including the carriage return and line feed, it worked fine.
精彩评论