Mango
关于我
名称 | Mango |
---|---|
位置 | Alberta, Canada |
职业 | Software developer |
注册时间 | April 30, 2012 |
开发的附加组件数量 | 0 个附加组件 |
开发的附加组件平均得分 | 尚无评分 |
我所发表的评价
Spamness
评分4星,满分5星
I had to alter this extension slightly to allow it to work with the default X-Spam-Status header used by my cPanel server. I changed Spamness.parseHeader to:
Spamness.parseHeader = function(headerStr) {
var score = (score = headerStr.match(/(score|hits) ?= ?([-\d\.]+)/)) ? parseFloat(score[2]) : 0;
var required = (required = headerStr.match(/(required) ?= ?([-\d\.]+)/)) ? parseFloat(required[2]) : 0;
var tests = (tests = headerStr.match(/tests ?= ?(.*?[^, ])( |$)/)) ? tests[1].split(/,\s*/) : [];
return new Spamness.Header(score, required, tests);
};
Also, I changed the last line of Spamness.getHeaderName to:
return header.toLowerCase();
This allows Score Header to be case-insensitive. Before, it had to be in lower case.
Thanks to Ryan for this excellent extension. I have been testing new SpamAssassin configuration and it is very useful to be able to sort messages by spam score.
创建您自已的收藏集,您必须一个 Mozilla 附加组件账户。
或者登录您已有的账户