Re: Mail_Mbox

From: Date: Sat, 28 Dec 2002 22:35:34 +0000
Subject: Re: Mail_Mbox
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-11896@lists.php.net to get a copy of this message
> +1 for the class Thank you. > > Apart from the tab/space inconsistencies (a minor point), there is one nitpick > in the mbox_test.php. When creating a new instance, you do not need to do a > reference assignment, unless you are using a factory method (which might or > might not be static), i.e.: > > $mbox = new Mail_Mbox(); yeah, I agree that currently it doesnt need. > should be enough. > > Once you get your CVS account and import the code into PEAR, you will need to > also create a package.xml file, so it can be distributed using the PEAR package > manager. Ok, I will take a look on it when I add to PEAR. > > > --- Roberto Bertó <roberto@desenvolve.com.br> wrote: > > Hi all, > > > > > > Its my first message on this list. I wished to say a happy hollyday, but > > I am late :-) > > > > > > I developed a Mbox parse class that read messages, change, add and > > delete from a mbox file. > > > > You can download it from > > > > http://opensource.under.com.br/Mail_Mbox/Mail_Mbox-0.1.0.tgz > > > > I am copy&past its methods: > > > > * int resource mbox->open(string file) > > * open a mbox and return a resource id > > * > > * bool mbox->close(resource) > > * close a mbox resource id > > * > > * int mbox->size(resource) > > * return mbox number of messages > > * > > * string mbox->get(int resource,messageNumber) > > * return the message number of the resource > > * > > * bool mbox->update(int resource,int messageNumber,string message) > > * update the message offset to message (need write permission) > > * > > * bool mbox->delete(int resource,int messageNumber) > > * remove the message messageNumber (need write permission) > > * > > * bool mbox->insert(int resource,string message[,$offset = null]) > > * add message to the end of the mbox. Offset == 0 message will be > > append at first message. If after == null will be the last one message. > > * (need write permission) > > > > > > > > I was builting everything to do not use more than 1 byte of memory per > > time when working on messages, but on update, delete and insert I did > > something fast to finished it, so, it is working with a full message per > > time on the memory. Next releases will use byte per byte on everything. > > > > > > I would like to now if you approve it and If I can request a PEAR > > account to send the class to the repository. > > > > There are an example included on the mbox_test.php > > > > > > Thank you for your feedback! > > > > > > > > -- > > Roberto Bertó <roberto@desenvolve.com.br> > > Desenvolve Solucões de Internet > > > > > > -- > > PEAR Development Mailing List (http://pear.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > ===== > --- Jesus M. Castagnetto (jcastagnetto@yahoo.com) > > Research: > http://metallo.scripps.edu/ > Personal: http://www.castagnetto.org/ > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com -- Roberto Bertó <roberto@desenvolve.com.br> Desenvolve Solucões de Internet

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