[imp] Custom Options

Barry Flanagan barryf-imp@digiserve.ie
Fri, 14 Dec 2001 11:48:24 +0000


On Friday 14 December 2001 03:17, you wrote:
> All right, before anyone gets further off-track on this: there is a
> preference type already in existance to handle this exact case. Here's an
> example:
>
> $_prefs['filters_link'] = array(
>     'type' => 'link',
>     'url' => 'filters.php',
>     'img' => 'filters.gif',
>     'desc' => _("Edit my filter rules")
> );
>
> (this is the link to the filters page) It's not actually a preference; it
> just puts a link, with the specified description, url, and image, into
> whatever prefgroup you put 'filters_link' in to.

I was just going to sugget that. We have  used the above to hook in a backend 
(procmail based) filtering system to replace the IMP default one, making a 
frameset that includes the upper menu items in one frame and our own 
filtering system (using the IMP CSS) in the bottom frame.

Works a treat.

-Barry Flanagan