[ingo] script filters and on-demand

Jan Schneider jan at horde.org
Wed Apr 26 08:16:33 PDT 2006


Zitat von Dmitriy MiksIr <miksir at maker.ru>:

> For support on-demand filtering in my maildrop filter script, i add a
> few lines of code for call IMAP methods:
>     var $_ondemand = true;
>
>     function apply()
>     {
>         require_once INGO_BASE . '/lib/Script/imap.php';
>         $imap_script = new Ingo_Script_imap;
>         return $imap_script->apply();
>     }
>
>     function canApply()
>     {
>        require_once INGO_BASE . '/lib/Script/imap.php';
>        $imap_script = new Ingo_Script_imap;
>        return $imap_script->canApply();
>     }
> It's look better for me, than two installation of ingo.
> May be someone see any hidden dangers in my solution?

The only problem that you might hit, is that the maildrop driver and  
the imap driver support different sets of filter rules. That might  
lead to some unpredictable results.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the ingo mailing list