Re: Net_IMAP Class
| From: | John Luxford | Date: | Sat, 15 Feb 2003 07:22:51 +0000 |
| Subject: | Re: Net_IMAP Class | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-13321@lists.php.net to get a copy of this message | ||
$Net_IMAP++; // Yeah!!!
Tthe cmd_* methods in IMAPProtocol.phps should probably be changed to follow the PEAR naming standard though...
Lux
On Friday, February 14, 2003, at 09:30 PM, Damian Alejandro Fernandez Sosa wrote:
I'm making a Net_IMAP class to do 4 things:-- John Luxford President and Chief Developer ______________________________ SIMIAN systems Driving Web Content Management ______________________________ web : http://www.simian.ca/ email : lux@simian.ca phone : 204.452.8537* provide IMAP access to people that dont have IMAP supportcompiled in* improve the IMAP's support that php has (the php's imapsupport only offer a very limited set of the IMAP protocol) (can you -for example - fetch all the headers,flags, msgids,uids, internaldate, body and bodystructure in only 1 call to the imap server? with this class, you can doit! - make a $aaa=$a->cmd_fetch("1:3","(FLAGS RFC822.SIZE UID ENVELOPE INTERNALDATE BODY[TEXT] BODYSTRUCTURE)") print_r($aaa); )* Extensible: We can implemment all the IMAP's extensions.* low and high level interface: If you Know the IMAP protocol, you can write the request but also you'll have a high level api to hide the imap's protocol: ( for example to get the flags of msgs 1 to 10 you can do: $aaa=$a->cmd_fetch("1:10","(FLAGS)") or $aaa=$a->getFLAGS("1:10"); The status is very EXPERIMENTAL, but almost all RFC2060 commands are implemented (the low level api). I make a parser to the FETCH response so all the response is returned in an array. In the future, all the protocols commands will return an array and they will have this parser. If you can take a look, please go to http://fernandezsosa.com.ar/Net_IMAP/IMAP.phps (high level API 1% done) http://fernandezsosa.com.ar/Net_IMAP/IMAPProtocol.phps (low level API 70% done) http://fernandezsosa.com.ar/Net_IMAP/test1.phps http://fernandezsosa.com.ar/Net_IMAP/test2.phps Comments,Ideas, +1? -- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php