Increment year in copyright notice.
[squirrelmail.git] / functions / rfc822address.php
index f08ee1e84c27617a7debfbae50a77b0a8b37c1d9..d662a4625b6323002f468f550461d7bd6f86337e 100644 (file)
@@ -2,7 +2,7 @@
 /**
  * rfc822address.php
  *
- * Copyright (c) 2004 The SquirrelMail Project Team
+ * Copyright (c) 2004-2005 The SquirrelMail Project Team
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  *
  * Contains rfc822 email address function parsing functions.
@@ -44,7 +44,7 @@ function parseRFC822Address($sAddress,$aProps) {
     $iLimit   = $aProps['limit'];
 
     $aTokens = _getAddressTokens($sAddress);
-    $sPersonal = $sEmail = $sComment = $sGroup = '';
+    $sEmail = $sGroup = '';
     $aStack = $aComment = $aAddress = array();
     foreach ($aTokens as $sToken) {
         if ($iLimit && $iLimit == count($aAddress)) {
@@ -302,7 +302,6 @@ function _createAddressElement(&$aStack,&$aComment,&$sEmail) {
 
 function _getAddressTokens($address) {
     $aTokens = array();
-    $aAddress = array();
     $aSpecials = array('(' ,'<' ,',' ,';' ,':');
     $aReplace =  array(' (',' <',' ,',' ;',' :');
     $address = str_replace($aSpecials,$aReplace,$address);