Re: Net_IMAP Class

From: Date: Sat, 15 Feb 2003 20:13:46 +0000
Subject: Re: Net_IMAP Class
References: 1 2 3 4 5  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-13349@lists.php.net to get a copy of this message
> > I think you're plan for the Net_IMAP being the high level API is a good one, Thanks! > whilst what you suggest above could be done as something like a > Net_MailStore based on the factory pattern. Eg: > > $mailAccessObj = new Net_MailStore('pop3://user:password@domain'); Thats what I was thinking! I also like the name Net_MailStore for what class! > > This would make the $mailAccessObj a Net_POP3 object, or perhaps a wrapper > (eg. Net_MailStore_POP3), with a common set of methods that apply to > imap/pop3. This MailStore wrapper could in theory then encompass other > methods of storage, including Mail_Mbox (currently exists IIRC), > Mail_MailDir, Mail_Foo etc. That kind of abstraction is great! We sould have only one class to access a Mbox file, a pop, IMAP, NNTP or Etc! The imap protocol is very complex and I have a lot of work to do. I was focused in the low level API, (basicaly the FETCH response parser). If you want I can make now the high level api compatible with the Net_POP3 class and we can make Net_MailStore together. What do you think? > > -- > Richard Heyes > V-webmail - http://www.v-webmail.co.uk

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