Mango
내 정보
이름 | Mango |
---|---|
사는 곳 | Alberta, Canada |
직업 | Software developer |
가입한 날짜 | 4월 30, 2012 |
개발한 부가 기능 수 | 부가 기능 0개 |
이 개발자의 부가 기능의 평균 별점 | 아직 별점 없음 |
내 검토
Spamness
5점중 4점 받음
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 부가 기능 계정이 있어야 합니다.
아니면 현재 사용중인 계정으로 로그인 하세요