Re: Net_IMAP Class

From: Date: Sat, 15 Feb 2003 13:26:56 +0000
Subject: Re: Net_IMAP Class
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-13331@lists.php.net to get a copy of this message
Yes, I also must document all the methods. but... I want you to see it as highly experimental but usable.... All I want to know is if this is useful to PEAR. If it is useful it will follow all the standars but why if it is'nt going to be accepted.... why I should make _cosmetic_ changes ? On Sat, 2003-02-15 at 04:22, John Luxford wrote: > $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: > > * provide IMAP access to people that dont have IMAP support > > compiled in > > * improve the IMAP's support that php has (the php's imap > > support 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 > > > > > > > > -- > > 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

« previous php.pear.dev (#13331) next »