ed5d9f21d9fb0cd8a060433bb966c45507b79ef3
4 * AddressStructure.class.php
6 * Copyright (c) 2002 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 if (isset($this->host
) && ($this->host
!= '')) {
26 $email = $this->mailbox
.'@'.$this->host
;
28 $email = $this->mailbox
;
30 if (trim($this->personal
) != '') {
32 $addr = '"' . $this->personal
. '" <' .$email.'>';
34 $addr = $this->personal
;
36 $best_dpl = $this->personal
;
41 $result = ($full ?
$addr : $best_dpl);