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)
Use
fetchmailandprocmailto build a local mailbox. Create~/.fetchmailrccontaining...Then setup
procmailto store the messages...In your
~folder, create.procmailrccontaining...You may need to make these folders too, I forget.
To begin fetch mail with procmail do:
You can use something like
muttto read the mail, personally I don't read mail manually that I'm doing a fetchmail with, I would use it for email automation, which is what procmail is good at, essentially you can create 'recipes' to filter, process and redirect messages.Wikipedia has a reasonable starting point for learning more about procmail. The
man fetchmailandman procmailpages also have a lot of useful info.