local function maybe_print_color(key)
if not opts['no-color'] then
- return ansicolors.white .. key .. ansicolors.reset
+ return string.format('%s%s%s', ansicolors.white, key, ansicolors.reset)
else
return key
end
# if `patterns` is specified virus name will be matched against provided regexes and the related
# symbol will be yielded if a match is found. If no match is found, default symbol is yielded.
patterns {
- # symbol_name = "pattern";
JUST_EICAR = "^Eicar-Test-Signature$";
}
# `whitelist` points to a map of IP addresses. Mail from these addresses is not scanned.
# if `patterns` is specified virus name will be matched against provided regexes and the related
# symbol will be yielded if a match is found. If no match is found, default symbol is yielded.
patterns {
- # symbol_name = "pattern";
JUST_EICAR = "^Eicar-Test-Signature$";
}
# mime-part regex matching in content-type or filename
mime_parts_filter_regex {
- #GEN1 = "application\/octet-stream";
+ GEN1 = "application\/octet-stream";
DOC2 = "application\/msword";
DOC3 = "application\/vnd\.ms-word.*";
XLS = "application\/vnd\.ms-excel.*";
# Symbol will be yielded on OS string, link type or distance matches
patterns = {
WINDOWS = '^Windows.*';
- #DSL = '^DSL$';
- #DISTANCE10 = '^distance:10$';
+ DSL = '^DSL$';
+ DISTANCE10 = '^distance:10$';
}
# Cache lifetime in seconds (default - 2 hours)