roundcube / roundcubemail

The Roundcube Webmail suite
https://roundcube.net
GNU General Public License v3.0
5.57k stars 1.6k forks source link

Extra info on the contact autocomplete list #9401

Open resposit opened 1 month ago

resposit commented 1 month ago

I tried to customize $config['contact_search_name'] as:

$config['contact_search_name'] = '{name} - {department} <{email}>';

But my departments are very long strings and get truncated in the autocompletion popup.

I tried to split the strings on multiple lines, like:

$config['contact_search_name'] = '{name}<br>{department}<br>{email}';

But, apparently html tags don't get recognized.

Is there any workaround ?

alecpl commented 1 month ago

That would require some changes to the list, just breaking the line would not look good, imo. It makes sense, but have to be done properly.

I'd probably do this with a separate option (contact_search_description) and if specified it would add an extra line below the name and email, styled differently. So, you'd set $config['contact_search_description'] = '{department}'.