On Thursday 19 November 2009, G.W. Haywood wrote:

> left me with the impression that it would not be an ideal replacement
> for ClamAV

Not for ClamAV, for clamav-milter only. It repeats the some functionality
of clamav-milter without quarantine:

http://www.sisyphus.ru/en/srpm/Sisyphus/mailfromd/sources/12

> Sergey, assuming you are the author of mailfromd,

No, I only have the same name. :-)

> Almost no state is stored for a scanned line, so milter-regex can't
> for example tell if the same pattern is matched more than once in a
> given message. That's the kind of flexibility I've been looking for.

If I understand you correctly, it is possible. This is not a precise
example but it should be like:

http://www.sisyphus.ru/en/srpm/Sisyphus/mailfromd/sources/0

In this line

set ma_hit_num massallocated_hit(${client_ptr}, %massallocated_regexps)

massallocated_hit returns a number of regular expression which matched 
with client_ptr. massallocated_hit is a user defined function:

http://www.sisyphus.ru/en/srpm/Sisyphus/mailfromd/sources/6

%massallocated_regexps defined in

http://www.sisyphus.ru/en/srpm/Sisyphus/mailfromd/sources/5

-- 
Regards,
Sergey
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Reply via email to