4 * AddressStructure.class.php
6 * Copyright (c) 2003 The SquirrelMail Project Team
7 * Licensed under the GNU GPL. For full terms see the file COPYING.
9 * This contains functions needed to handle mime messages.
14 class AddressStructure
{
21 function getAddress($full = true) {
24 if (is_object($this)) {
25 $email = ($this->host ?
$this->mailbox
.'@'.$this->host
27 if (trim($this->personal
)) {
28 $addr = ($email ?
'"' . $this->personal
. '" <' .$email.'>'
30 $best_dpl = $this->personal
;
35 $result = ($full ?
$addr : $best_dpl);