planning to use php imap functions, I'm trying to test the imap protocol from my local host, I didn't found telnet-ssl for mac but I can use openssl and get connected.
The problem is I can only login but I cannot select a mailbox, create a mailbox, get a list, … The only command I can run is capability which is not really useful.
Here is the command I typed (#) and answers I get (*)
# openssl s_client -connect imap.gmail.com:993
* CONNECTED(00000003)
* […]
* OK Gimap ready for requests from 77.xxx.xxx.xxx v7if3901328vdd.33
# a001 login myUserName myPassword
* OK myUserName firstname lastname authenticated (Success)
# a002 create testbox
* (nothing, I have to start a new session)
OR
# a002 list "*"
* (nothing, I have to start a new session)
OR
…
Not sure where the problem is,
Was someone able to fetch some mails successfully from gmail (or other) using imap on mac ? (I'm on osX10.6)
I think this may be a line-ending issue. Use the
-crlf
switch and it should work:This is the command I've always used to test Gmail IMAP, and it's worked fine for me from a Mac:
Also, your
LIST
command has bad syntax. You need two parameters, not one: