* @category Horde * @copyright 2010-2017 Horde LLC * @license http://www.horde.org/licenses/gpl GPL * @package IMP */ class IMP_Flag_System_Encrypted extends IMP_Flag_System_Match_Header { /** */ protected $_css = 'flagEncryptmsg'; /** */ protected $_id = 'encrypted'; /** */ protected function _getLabel() { return _("Message is Encrypted"); } /** * @param Horde_Mime_Headers $data */ public function match($data) { $ctype = $data->getValue('content-type', Horde_Mime_Headers::VALUE_BASE); return (($ctype == 'application/pkcs7-mime') || ($ctype == 'multipart/encrypted')); } }