Re: Imap Backend Propsal

From: Date: Tue, 10 Feb 2004 09:12:10 +0000
Subject: Re: Imap Backend Propsal
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-25565@lists.php.net to get a copy of this message
> >>1. It would be nice if there was a connection helper class. The connection > >>syntax looks arcane: > >>$msg =& new > >>Mail_ImapMailbox(imap_open('{mail.yourhost.com:110/pop3/notls}INBOX', > 'user', > >>'pass')); > > It is a bit, but the syntax depends on the server, I suppose, I have only > been able to test with my POP3 server, and if you look at the docs for > imap_open, you'll see a number of ways that argument can be passed. I > started to break down that argument by protocol, including extra arguments > to differentiate between anomalies, but then I realized that I only have my > server to test on! I'm open to suggestions for improving that. Use a URI style abstraction: imap://user:pass@mail.yourhost.com:110/pop3/notls#INBOX You could even use Net_URL if you really wanted to get all the relevant parts. -- Richard Heyes

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