Re: Net_IMAP Class

From: Date: Tue, 18 Feb 2003 14:16:10 +0000
Subject: Re: Net_IMAP Class
References: 1 2 3 4 5 6 7 8 9  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-13450@lists.php.net to get a copy of this message
Thanks for your comments! > This isn't really necessary, as presumably this will be wrapped/abstracted > by the Net_MailStore class. > is, but is useful now because we can use the code already made to use Net_POP3 to test IMAP.php. I'd like to try it with more imaps servers before making the names changes. What do you think? > > http://fernandezsosa.com.ar/Net_IMAP/IMAP.phps (high level > > API 80% done) > > Constructor: > > If you use defaults as localhost and 143 you don't need to check that > they're set and can use them outright. > done. And now the LOW level API verifies if there is a connection or not. (if not connected it returns a pear_error) > login(): > > No need for $apop arg here, even if you're aiming for Net_POP3 > compatibility. I implemment the login, CRAM-MD5 and DIGEST-MD5 auth methods, as done in Net_SMTP so $apop can be used to select "PLAIN" login (false) Encrypted LOGIN (true) or a specific login by passing the authmethod name > > disconnect(): > > Not sure if I'd always perform an expunge here. Maybe make it optional > defaulting to not. done. now disconnect has a parameter $expungeOnExit by default it does not expunge on exit also I add the missing expunge command to the HIGH level API > > > Comments,Ideas, +1? > > You'll need a cvs/pear account to add this. :) It sould be useful, but my class ONLY receive 1 "+1" ... I need 4 more to access to that :) ------------------------------------------------- Mail enviado desde el CNBA http://www.cnba.uba.ar/ -----

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