Re: Selecting server based on IMP server
Michael M Slusarz <[email protected]>
| Newsgroups | gmane.comp.horde.gollem |
|---|---|
| Message-ID | <[email protected]> |
Quoting Jacob Elder <[email protected]>: > 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 [[email protected]] -- Gollem mailing list - Join the hunt: http://horde.org/bounties/#gollem Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [email protected]