From 1c808425cab2348ed35c8614752c52063b278256 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 9acf463756..5e63d7618b 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -6372,6 +6372,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