[imp] Custom Options

Barry Flanagan barryf-imp@digiserve.ie
Tue, 18 Dec 2001 16:09:58 +0000


On Friday 14 December 2001 17:48, you wrote:
> We too will be forced to use a special perl API for filtering.  I am very
> interested in seeing this.  If you have a timeline for even just sharing
> it, that would be helpful.
>

We will be launching our use of it in January. As soon after that as I can. 
I'll share it.

> Can you tell me what files you touched to do this?  Is the horde code now a
> swiss cheese of patches, or were you able to isolate it to a few horde
> files, and your new perl code?

Nope, changes to prefs.php (nice that this never gets over-written with an 
update!) to add the filter stuff under Options - replacing the generic IMP 
ones, plus a new generic frame index page that creates the IMP menus at the 
top in a frameset, and loads our CGI stuff in the bottom frame.


Regards,

-Barry Flanagan

>
> Thanks
>
> > -----Original Message-----
> > From: Barry Flanagan [mailto:barryf-imp@digiserve.ie]
> > Sent: Friday, December 14, 2001 6:48 AM
> > To: imp@lists.horde.org
> > Subject: Re: [imp] Custom Options
> >
> > 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
> >
> > --
> > IMP mailing list: http://horde.org/imp/
> > Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> > Frequently Asked Questions: http://horde.org/faq/
> > To unsubscribe, mail: imp-unsubscribe@lists.horde.org

-- 

-Barry Flanagan