Mail: Respect force_mailto preference when clicking on email tags

This commit is contained in:
nathan 2023-03-22 13:41:13 -06:00
parent 5e6b11e73c
commit a4ea9dda34

View File

@ -6369,6 +6369,13 @@ app.classes.mail = AppJS.extend(
*/ */
onclickCompose(_node, _address) onclickCompose(_node, _address)
{ {
egw.open_link('mailto:'+_address.value); if (_address.value && this.egw.preference('force_mailto', 'addressbook') != '1')
{
this.egw.open_link('mailto:' + _address.value);
}
else
{
window.open("mailto:" + _address.value);
}
} }
}); });