RE: [PHP-PEAR] Mail implementation

From: Date: Wed, 25 Oct 2000 23:40:41 +0000
Subject: RE: [PHP-PEAR] Mail implementation
References: 1  Groups: php.pear 
Request: Send a blank email to php-pear+get-422@lists.php.net to get a copy of this message
> Quoting Richard Heyes <richard.heyes@heyes-computing.net>: > > > Shouldn't be too difficult to write a function that does similar, I can > > oblige if you wish (though briefly looking at the rfc this > function could > > quickly turn into a class of its' own :) ). > > Easily - that's why it's nice to have a builtin function to do > it. It's not a > trivial task, and being able to use someone else's work instead > of redoing it is > a big win. Indeed. I'll have a go at a php version of imap_rfc822_parse_adrlist(), having it around can't be a bad thing. > > It could be argued also, that no validation should be done at all, > > leaving it to the people writing the scripts that utilise the > Mail class, > > though the I think support for checking the addresses should definitley > > exist somewhere. > > What about checking the addresses if the imap module is > available, and otherwise > not? Sounds good. I forgot that's possible. Perhaps also a bool flag on prepareHeaders() and parseRecipients() to determine whether checking takes place? Could set it to default to true. -- Richard Heyes

« previous php.pear (#422) next »