/usr/share/php/Horde/Compress/Tnef/MessageData.php is in php-horde-compress 2.2.1-1ubuntu1.
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 99 100 | <?php
/**
* Copyright 2002-2017 Horde LLC (http://www.horde.org/)
*
* See the enclosed file COPYING for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
*
* @author Michael J Rubinsky <mrubinsk@horde.org>
* @category Horde
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
* @package Compress
*/
/**
* Object for holding properties of the TNEF message as a whole.
*
* @author Michael J Rubinsky <mrubinsk@horde.org>
* @category Horde
* @copyright 2002-2017 Horde LLC
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
* @package Compress
*/
class Horde_Compress_Tnef_MessageData extends Horde_Compress_Tnef_Object
{
/**
*
* @var string
*/
public $subject;
/**
*
* @var Horde_Date
*/
public $dateSent;
/**
*
* @var string
*/
public $from;
/**
*
* @var string
*/
public $fromName;
/**
* Allow this object to set any TNEF attributes it needs to know about,
* ignore any it doesn't care about.
*
* @param integer $attribute The attribute descriptor.
* @param mixed $value The value from the MAPI stream.
* @param integer $size The byte length of the data, as reported by
* the MAPI data.
*/
public function setTnefAttribute($attribute, $value, $size)
{
switch ($attribute) {
case Horde_Compress_Tnef::ASUBJECT:
$this->subject = trim($value);
break;
case Horde_Compress_Tnef::ADATERECEIVED:
if (!$this->dateSent) {
$this->dateSent = new Horde_Compress_Tnef_Date($value);
}
break;
case Horde_Compress_Tnef::ADATESENT:
$this->dateSent = new Horde_Compress_Tnef_Date($value);
break;
}
}
/**
* Allow this object to set any MAPI attributes it needs to know about,
* ignore any it doesn't care about.
*
* @param integer $type The attribute type descriptor.
* @param integer $name The attribute name descriptor.
*/
public function setMapiAttribute($type, $name, $value)
{
switch ($name) {
case Horde_Compress_Tnef::MAPI_CONVERSATION_TOPIC:
$this->subject = $value;
break;
case Horde_Compress_Tnef::MAPI_SENT_REP_EMAIL_ADDR:
$this->from = $value;
break;
case Horde_Compress_Tnef::MAPI_SENT_REP_NAME:
$this->fromName = $value;
}
}
}
|