This file is indexed.

/usr/share/squirrelmail/class/mime/MessageHeader.class.php is in squirrelmail 2:1.4.23~svn20120406-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?php

/**
 * MessageHeader.class.php
 *
 * This file contains functions needed to handle headers in mime messages.
 *
 * @copyright 2003-2012 The SquirrelMail Project Team
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
 * @version $Id: MessageHeader.class.php 14248 2012-01-02 00:18:17Z pdontthink $
 * @package squirrelmail
 * @subpackage mime
 * @since 1.3.2
 */

/**
 * Message header class
 * Class contains all variables available in a bodystructure
 * entity like described in rfc2060
 * It was called msg_header in 1.3.0 and 1.3.1.
 * @package squirrelmail
 * @subpackage mime
 * @since 1.3.2
 */
class MessageHeader {
    /**
     * Media type
     * @var string
     */
    var $type0 = '';
    /**
     * Media subtype
     * @var string
     */
    var $type1 = '';
    /**
     * Content type parameters
     * @var array
     */
    var $parameters = array();
    /**
     * @var mixed
     */
    var $id = 0;
    /**
     * @var string
     */
    var $description = '';
    /**
     * @var string
     */
    var $encoding='';
    /**
     * Message size
     * @var integer
     */
    var $size = 0;
    /**
     * @var string
     */
    var $md5='';
    /**
     * @var mixed
     */
    var $disposition = '';
    /**
     * @var mixed
     */
    var $language='';

    /**
     * Sets header variable
     * @param string $var
     * @param mixed $value
     */
    function setVar($var, $value) {
        $this->{$var} = $value;
    }

    /**
     * Gets parameter value from $parameters array
     * @param string $p
     * @return mixed
     */
    function getParameter($p) {
        $value = strtolower($p);
        return (isset($this->parameters[$p]) ? $this->parameters[$p] : '');
    }

    /**
     * Sets parameter value in $parameters array
     * @param string $parameter
     * @param mixed $value
     */
    function setParameter($parameter, $value) {
        $this->parameters[strtolower($parameter)] = $value;
    }
}