cvs: php4 /pear/Mail RFC822.php
| From: | Chuck Hagenbuch | Date: | Wed, 31 Oct 2001 21:59:43 +0000 |
| Subject: | cvs: php4 /pear/Mail RFC822.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1221@lists.php.net to get a copy of this message | ||
chagenbu Wed Oct 31 16:59:43 2001 EDT
Modified files:
/php4/pear/Mail RFC822.php
Log:
validateMailbox() is a useful function to export. I'm changing it back to
the old name and marking it as public.
Index: php4/pear/Mail/RFC822.php
diff -u php4/pear/Mail/RFC822.php:1.16 php4/pear/Mail/RFC822.php:1.17
--- php4/pear/Mail/RFC822.php:1.16 Mon Oct 29 09:22:30 2001
+++ php4/pear/Mail/RFC822.php Wed Oct 31 16:59:43 2001
@@ -38,7 +38,7 @@
*
* @author Richard Heyes <richard@phpguru.org>
* @author Chuck Hagenbuch <chuck@horde.org>
-* @version $Revision: 1.16 $
+* @version $Revision: 1.17 $
* @package Mail
*/
@@ -438,7 +438,7 @@
// geezer@domain.com
// geezer
// ... or any other format valid by RFC 822.
- array_walk($addresses, array($this, '_validateMailbox'));
+ array_walk($addresses, array($this, 'validateMailbox'));
// Nested format
if ($this->nestGroups) {
@@ -554,11 +554,11 @@
* mailbox = addr-spec ; simple address
* / phrase route-addr ; name and route-addr
*
- * @access private
+ * @access public
* @param string &$mailbox The string to check.
* @return boolean Success or failure.
*/
- function _validateMailbox(&$mailbox)
+ function validateMailbox(&$mailbox)
{
// A couple of defaults.
$phrase = '';
@@ -830,4 +830,4 @@
}
}
-?>
\ No newline at end of file
+?>