public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Commit
BugFix: Outlook 2016 not using EAS
Outlook 2016 autoconfig will not be EAS enabled, even though "$autodiscover_config['useEASforOutlook'] = 'yes'; Outlook 2016 gives the HTTP_USER_AGENT string of "Microsoft Office/16.0 (Windows NT 10.0; MAPI 16.0.9001; Pro)" Limiting the regex to only 15, causes the entire if statement to fail. For future proofing, this has been set to any version string containing 15,16,17,18,19 This has been tested using the "Test Email AutoConfiguration for Outlook 2016"
a3ae8007
data/web/autodiscover.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Diff
diff --git a/data/web/autodiscover.php b/data/web/autodiscover.php
index 2f5fb2c9..4c71a295 100644
--- a/data/web/autodiscover.php
+++ b/data/web/autodiscover.php
@@ -21,7 +21,7 @@ if (strpos($data, 'autodiscover/outlook/responseschema') !== false) {
// Office for macOS does not support EAS
strpos($_SERVER['HTTP_USER_AGENT'], 'Mac') === false &&
// Outlook 2013 (version 15) or higher
- preg_match('/(Outlook|Office).+15\./', $_SERVER['HTTP_USER_AGENT'])
+ preg_match('/(Outlook|Office).+1[5-9]\./', $_SERVER['HTTP_USER_AGENT'])
) {
$autodiscover_config['autodiscoverType'] = 'activesync';
}