dkimverified/0000755000004100000040000000000011323645516012563 5ustar www-dataadmdkimverified/dkimverified.php0000664000004100000040000000475411323664562015754 0ustar www-dataadmaction == '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'] = ''.$this->gettext('verifiedsender').' ' . $p['output']['from']['value']; } elseif($status == 'fail'){ $p['output']['from']['value'] = ''.$this->gettext('invalidsignature').' ' . $p['output']['from']['value']; } else { $p['output']['from']['value'] = ''.$this->gettext('unknownsignature').' ' . $p['output' ]['from']['value']; } } return $p; } } dkimverified/localization/0000775000004100000040000000000011323665571015260 5ustar www-dataadmdkimverified/localization/cs_CZ.inc0000674000004100000040000000021611250267542016747 0ustar www-dataadmdkimverified/localization/en_US.inc0000674000004100000040000000030611323665571016764 0ustar www-dataadm dkimverified/images/0000775000004100000040000000000011323664332014027 5ustar www-dataadmdkimverified/images/verified_sender.png0000674000004100000040000000056011250254705017672 0ustar www-dataadmPNG  IHDR |RgAMAOX2tEXtSoftwareAdobe ImageReadyqe<WPLTE,4Aux7ET.:KAR`ShtAN]R\$DVdr}CXhr}uxiWbtRNS@fbKGDH pHYs  tIME)3wIDATm `x٠SJYOI@8OfgjADK(5Lԛ"=cz7Wmc==kt­3ڜ9:q@~H62IENDB`