dkimverified/ 0000755 0000041 0000004 00000000000 11323645516 012563 5 ustar www-data adm dkimverified/dkimverified.php 0000664 0000041 0000004 00000004754 11323664562 015754 0 ustar www-data adm action == 'show' || $rcmail->action == 'preview') {
$this->add_hook('imap_init', array($this, 'imap_init'));
$this->add_hook('message_headers_output', array($this, 'message_headers'));
} else if ($rcmail->action == '') {
// with enabled_caching we're fetching additional headers before show/preview
$this->add_hook('imap_init', array($this, 'imap_init'));
}
}
function imap_init($p)
{
$rcmail = rcmail::get_instance();
$p['fetch_headers'] = trim($p['fetch_headers'].' ' . strtoupper('X-Spam-Status'));
return $p;
}
function message_headers($p)
{
$this->add_texts('localization');
if($p['headers']->others['x-spam-status']) {
$results = $p['headers']->others['x-spam-status'];
//has a verified signature
if(preg_match("/DKIM_VERIFIED/", $results)||preg_match("/DK_VERIFIED/", $results)) {
$status = 'pass';
}
//has a signature but not verified
elseif(preg_match("/DKIM_SIGNED/", $results)||preg_match("/DK_SIGNED/", $results)){
$status = 'fail';
}
//has no DKIM or DK information
else
{
$status = 'none';
}
if($status == 'pass') {
$p['output']['from']['value'] = '
' . $p['output']['from']['value'];
} elseif($status == 'fail'){
$p['output']['from']['value'] = '
' . $p['output']['from']['value'];
} else {
$p['output']['from']['value'] = '
' . $p['output' ]['from']['value'];
}
}
return $p;
}
}
dkimverified/localization/ 0000775 0000041 0000004 00000000000 11323665571 015260 5 ustar www-data adm dkimverified/localization/cs_CZ.inc 0000674 0000041 0000004 00000000216 11250267542 016747 0 ustar www-data adm