[ingo] more variables for maildrop backend vfs_path

dev at stean.ch dev at stean.ch
Tue Oct 14 17:45:35 UTC 2008


patch is attached. i am unsure about the Ingo.php:getDomain.
the Ingo.php:getUser checks whether shares are used or not.
i don't know if domains play a role with shares, i don't use
them at all.

regards, stephan


Quoting Jan Schneider <jan at horde.org>:

> Zitat von dev at stean.ch:
>
>> hello all,
>>
>> i am about to make tests with ingo using maildrop as backend.
>> using the latest stable release.
>>
>> i have running multiple virtual domains on the server and the
>> mail users do not have ftp nor ssh access to the server, so
>> i need to use one single system user that will be used by the
>> backend to transfer the scripts via ftp.
>>
>> so here some parts out of the backend.php:
>>
>> $backends['maildrop'] = array(
>>    'driver' => 'vfs',
>>    'hordeauth' => false,
>>    'params' => array(
>>        'filename' => '.mailfilter',
>>        'username' => 'MAILDROPUSER',
>>        'password' => 'MAILDROPPWD',
>>        'vfs_path' => '/SOMEWHERE/%u/',
>>        'vfstype' => 'ftp',
>>   ...
>>
>> now having user sam at domain1 and sam at domain2 which are not the same
>> persons, i would get only one single /SOMEWHERE/sam/.mailfilter file.
>> setting hordeauth to false, needed to authenticate with a non horde
>> user, will cause ingo/lib/Driver/vfs.php to cut off the domain part
>> from the user.
>>
>> is there an existing way to get back the domain part without modifying
>> the ingo scripts?
>
> 'hordeauth' => 'full'
>
>> or what about extending ingo in a future release to be more flexible
>> to have more variables for the path? something like
>> /SOMEWHERE/domain1/sam and /SOMEWHERE/domain2/sam, by having new %d
>> variable for example. which i allready implemented for the time beeing
>> in Ingo.php and vfs.php to be able to go on with my tests.
>
> Sure. Patch?
>
> Jan.
>
> -- 
> Do you need professional PHP or Horde consulting?
> http://horde.org/consulting/
>
> --
> Ingo mailing list - Join the hunt: http://horde.org/bounties/#ingo
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: ingo-unsubscribe at lists.horde.org


-------------- next part --------------
A non-text attachment was scrubbed...
Name: domain.patch.gz
Type: application/x-gzip
Size: 906 bytes
Desc: not available
URL: <http://lists.horde.org/archives/ingo/attachments/20081014/090a76ec/attachment.bin>


More information about the ingo mailing list