return 0
end
- return task:process_regexp({
- re = re,
- type = 'allheader'
- })
+ return task:process_regexp(r['re'], 'allheader')
end
else
local args = split(h, '[^:]+')
return 0
end
- local ret = task:process_regexp({
- re = r['re'],
- type = t,
- strong = h['strong'],
- header = h['header'],
- raw = h['raw'],
- })
+ local ret = task:process_regexp(r['re'], t, h['header'], h['strong'])
if r['not'] then
if ret ~= 0 then
local t = 'mime'
if r['raw'] then t = 'rawmime' end
- return task:process_regexp({
- re = r['re'],
- type = t,
- })
+ return task:process_regexp(r['re'], t)
end
if r['score'] then
local real_score = r['score'] * calculate_score(k, r)
end
local t = 'sabody'
- local ret = task:process_regexp({
- re = r['re'],
- type = t,
- })
+
+ local ret = task:process_regexp(r['re'], t)
return ret
end
if r['score'] then
return 0
end
- return task:process_regexp({
- re = r['re'],
- type = 'body',
- })
+ return task:process_regexp(r['re'], 'body')
end
if r['score'] then
local real_score = r['score'] * calculate_score(k, r)
return 0
end
- return task:process_regexp({
- re = r['re'],
- type = 'url',
- })
+ return task:process_regexp(r['re'], 'url')
end
if r['score'] then
local real_score = r['score'] * calculate_score(k, r)