I found a problem with resolving username from email in function
email2user (rcube_user.php).
This function only resolves strict aliases like

[email protected]        realuser

Especially, does not support %1 substitution and aliasing to
another e-mail.
By example, below entries aren't proprerly resolved.

[email protected]        [email protected]
[email protected]   realuser

don't work for [email protected]

or

[email protected]        realuser
@another.domain         %[email protected]

don't work for [email protected]

I wrote a quick patch, that allow recursion in virtusertable
processing and doing %1 substitution.
In addition, enrties "cathall" like

@example.com            user

ale supported.

This patch works for me, but are a rether non-optimal because
i don't change anything in findinvirtual() function, and
virtusertable is readed in every recursion. This can be fixed
easyly by caching $virtual array.

--
Konrad Stępień


--- 8< --- detachments --- 8< ---
The following attachments have been detached and are available for viewing.
 http://detached.gigo.com/rc/wr/H7Kra4Hn/rcube_virtusertable.patch
Only click these links if you trust the sender, as well as this message.
--- 8< --- detachments --- 8< ---

_______________________________________________
List info: http://lists.roundcube.net/dev/

Reply via email to