4 * MessageHeader.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.
15 /** msg_header contains all variables available in a bodystructure **/
16 /** entity like described in rfc2060 **/
20 $parameters = array(),
30 * returns addres_list of supplied argument
31 * arguments: array('to', 'from', ...) or just a string like 'to'.
32 * result: string: address1, addres2, ....
35 function setVar($var, $value) {
36 $this->{$var} = $value;
39 function getParameter($p) {
40 $value = strtolower($p);
41 return (isset($this->parameters
[$p]) ?
$this->parameters
[$p] : '');
44 function setParameter($parameter, $value) {
45 $this->parameters
[strtolower($parameter)] = $value;