/usr/share/horde/ingo/lib/Script/Procmail/Comment.php is in php-horde-ingo 3.2.13-1.
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 | <?php
/**
* Copyright 2003-2016 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (ASL). If you
* did not receive this file, see http://www.horde.org/licenses/apache.
*
* @author Ben Chavet <ben@horde.org>
* @author Jan Schneider <jan@horde.org>
* @category Horde
* @license http://www.horde.org/licenses/apache ASL
* @package Ingo
*/
/**
* The Ingo_Script_Procmail_Comment class represents a Procmail comment.
*
* @author Ben Chavet <ben@horde.org>
* @author Jan Schneider <jan@horde.org>
* @category Horde
* @license http://www.horde.org/licenses/apache ASL
* @package Ingo
*/
class Ingo_Script_Procmail_Comment implements Ingo_Script_Item
{
/**
* The comment text.
*
* @var string
*/
protected $_comment = '';
/**
* Constructs a new procmail comment.
*
* @param string $comment Comment to be generated.
* @param boolean $disable Output 'DISABLED' comment?
* @param boolean $header Output a 'header' comment?
*/
public function __construct($comment, $disable = false, $header = false)
{
if ($disable) {
$comment = _("DISABLED: ") . $comment;
}
$this->_comment = $header
? '##### ' . $comment . ' #####'
: '# ' . $comment;
}
/**
* Returns the comment stored by this object.
*
* @return string The comment stored by this object.
*/
public function generate()
{
return $this->_comment;
}
}
|