Hello All,

I think (more precisely - "I'm sure"), that current "auto-detection"
method of plugin's class is far from best. As example see at UMC
definition - it uses _single_ function from spam-related stuff (get
message size for statistical module) and - viola - The Bat wrote
"Macros, Antispam"... Not a big deal, but... :-(

Suggestion - add to API (and use it) function GetPluginClass, which simply
return bitmask of all supported in plugin classes

Smth. like

const
   PL_MACRO       = 0x01
   PL_ANTISPAM    = 0x02
   PL_ANTIVIRUS   = 0x04
   PL_FILTER      = 0x08
   PL_INTERACTIVE = 0x10
   PL_INTERFACE   = 0x20

defined in <...>

and
function GetPluginClass: Integer;
begin
   Result := PL_MACRO;
end;

in plugin

Any comments???

-- 
Best regards,
 Alexander Leschinsky






________________________________________________
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to