[Web-cyradm] First/Last Name and Search patch

Luc de Louw luc at delouw.ch
Wed Dec 26 12:26:25 CET 2007


Hi Leon,

Thanks a lot for sending in your patch and sorry for the late response, 
it is x-mas time :-)

Leon Kolchinsky wrote:
>> Hello All,
>>
>> Thanks to our PHP Coder - Eugeny Myunster we now can use some additional
>> features from the web-cyradm web interface (in version 0.5.5 -
>> http://www.web-cyradm.org/web-cyradm-svn-0.5.5.tar.gz):
>>
>> 1) Create (in "Add new account") account with First/Last Name in the DB.
>> 2) Edit First Name/Last Name (in " Edit account")
>> 3) While Browsing Domain Accounts we can now see users "First Name/Last
>> Name"
>> 4) Additional button "Show all" to show all accounts in specified
>> (browsed)
>> domain

This can be a problem. We have a customer with 400 mailaccounts, guess 
what happens of you hit this button. For all 400 accounts a cyrus 
connection will be made to look up the quota.

>> 5) Search function is also searching in the "First Name/Last Name" and
>> showing "First Name/Last Name" in search results.
>>
>> Please use it for your own benefit :)
>>
>> Do not forget to create 2 new columns with something like this (and index
>> them): alter table accountuser add name varchar(255), shurename
>> varchar(255)

Hmm... what is a "shurename"? I guess it is a typo ;-)

This brings me to another question: It would be much better to store 
this kind of information in a separate table with rows defined in 
config.php. This way the information such as Firstname/Lastname 
(address, phone,etc.) can be stored i.e. in the same table that is used 
by Horde/IMP or other webmailers.

[..]
>>
>> Please check this patch (if you need some improvements in it tell me) and
>> incorporate it in web-cyradm so we won't need to patch every new version
>> for
>> these nice features.

I'm not sure if I should apply this patch without the separate table for 
the storage.

Thanks,

Luc






More information about the Web-cyradm mailing list