Files
server/usr/share/psa-horde/imp/lib/Flag/System/Signed.php
2026-01-07 20:52:11 +01:00

49 lines
1.0 KiB
PHP

<?php
/**
* Copyright 2010-2017 Horde LLC (http://www.horde.org/)
*
* See the enclosed file COPYING for license information (GPL). If you
* did not receive this file, see http://www.horde.org/licenses/gpl.
*
* @category Horde
* @copyright 2010-2017 Horde LLC
* @license http://www.horde.org/licenses/gpl GPL
* @package IMP
*/
/**
* This class implements the signed message flag.
*
* @author Michael Slusarz <slusarz@horde.org>
* @category Horde
* @copyright 2010-2017 Horde LLC
* @license http://www.horde.org/licenses/gpl GPL
* @package IMP
*/
class IMP_Flag_System_Signed extends IMP_Flag_System_Match_Header
{
/**
*/
protected $_css = 'flagSignedmsg';
/**
*/
protected $_id = 'signed';
/**
*/
protected function _getLabel()
{
return _("Message is Signed");
}
/**
* @param Horde_Mime_Headers $data
*/
public function match($data)
{
return ($data->getValue('content-type', Horde_Mime_Headers::VALUE_BASE) == 'multipart/signed');
}
}