From a4ea9dda34e0d9788c41f916ad17942f387c7801 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 22 Mar 2023 13:41:13 -0600 Subject: [PATCH] Mail: Respect force_mailto preference when clicking on email tags --- mail/js/app.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mail/js/app.js b/mail/js/app.js index 5ffbfd8e61..a17bbf980d 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -6369,6 +6369,13 @@ app.classes.mail = AppJS.extend( */ 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); + } } }); \ No newline at end of file