51000744ea48c3603ba21932bee9dcf93c9119e3
4 * MessageHeader.class.php
6 * Copyright (c) 2003-2005 The SquirrelMail Project Team
7 * Licensed under the GNU GPL. For full terms see the file COPYING.
9 * This file contains functions needed to handle headers in mime messages.
12 * @package squirrelmail
18 * Message header class
19 * Class contains all variables available in a bodystructure
20 * entity like described in rfc2060
21 * It was called msg_header in 1.3.0 and 1.3.1.
22 * @package squirrelmail
30 $parameters = array(),
40 * Sets header variable
44 function setVar($var, $value) {
45 $this->{$var} = $value;
49 * Gets parameter value from $parameters array
53 function getParameter($p) {
54 $value = strtolower($p);
55 return (isset($this->parameters
[$p]) ?
$this->parameters
[$p] : '');
59 * Sets parameter value in $parameters array
60 * @param string $parameter
63 function setParameter($parameter, $value) {
64 $this->parameters
[strtolower($parameter)] = $value;