[gollem] Selecting server based on IMP server

Michael M Slusarz slusarz at mail.curecanti.org
Wed Oct 19 12:49:43 PDT 2005


Quoting Jacob Elder <jake.horde at trec.us>:

> Like I said, my PHP is a little rusty. I think the last time I really worked
> with PHP was 1999. Here's what I've put together from a naïve reading
> of the other code:
>
> imp/lib/api.php:
>
> $_services['server'] = array(
>   'type' => 'string'
> );
>
> function _imp_server()
> {
>   return $imp['server'];
> }
>
> /etc/horde/gollem/backends.php:
>
> $backends['auto'] = array(
>   'name' => 'Automatic',
>   'driver' => 'ftp',
>   'preferred' => '',
>   'hordeauth' => full,
>   'params' => array(
>       'hostspec' => Imp::server,
>   ),
>   'root' => '/',
>   'home' => '',
>   'createhome' => 'false',
>   // 'filter' => '^regex$',
>   'attributes' => array('type', 'name', 'download', 'modified', 'size',
> 'permission', 'owner')
> );
>
> As I'm sure you can guess, this results in a blank page. What should the API
> call look like when used?

$GLOBALS['registry']->call('mail/server');

BTW, your IMP api method has been added to IMP 4.1.

michael

_______________________________________
Michael Slusarz [slusarz at curecanti.org]


More information about the gollem mailing list