/**
* AddressStructure.class.php
*
- * Copyright (c) 2003 The SquirrelMail Project Team
+ * Copyright (c) 2003-2005 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* This contains functions needed to handle mime messages.
*
- * $Id$
+ * @version $Id$
+ * @package squirrelmail
*/
+/**
+ * Undocumented class
+ * @package squirrelmail
+ */
class AddressStructure {
var $personal = '',
$adl = '',
: $this->mailbox);
$personal = trim($this->personal);
$is_encoded = false;
- if (preg_match('/^(=\?([^?]*)\?(Q|B)\?([^?]*)\?=)(.*)/Ui',$personal,$reg)) {
+ if (preg_match('/(=\?([^?]*)\?(Q|B)\?([^?]*)\?=)(.*)/Ui',$personal,$reg)) {
$is_encoded = true;
}
if ($personal) {
}
}
$addr = ($email ? $personal . ' <' .$email.'>'
- : $this->personal);
+ : $this->personal);
$best_dpl = $this->personal;
} else {
$addr = $email;
}
return $result;
}
-
+
function getEncodedAddress() {
return $this->getAddress(true, true);
}
}
-?>
+?>
\ No newline at end of file