4 * MessageHeader.class.php
6 * Copyright (c) 2003-2004 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.
12 * @package squirrelmail
16 * Contains all variables available in a bodystructure
17 * @package squirrelmail
20 /** msg_header contains all variables available in a bodystructure **/
21 /** entity like described in rfc2060 **/
25 $parameters = array(),
35 * returns addres_list of supplied argument
36 * arguments: array('to', 'from', ...) or just a string like 'to'.
37 * result: string: address1, addres2, ....
40 function setVar($var, $value) {
41 $this->{$var} = $value;
44 function getParameter($p) {
45 $value = strtolower($p);
46 return (isset($this->parameters
[$p]) ?
$this->parameters
[$p] : '');
49 function setParameter($parameter, $value) {
50 $this->parameters
[strtolower($parameter)] = $value;