You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Connecting to an Exchange 2007 server via imap, listMessages() returned an empty array. Reason: the IMAP response line that is being matched in line 1217 had an extra trailing whitespace.
Changing the regex in line 1217 to match the possible trailing whitespace worked for me: if (preg_match('#^\s*\*\s+STATUS\s+"?INBOX"?\s+\((.*)\)\s+$#', $line, $match)) {
Any idea if the trailing whitespace is an issue of the Exchange servers config?
The text was updated successfully, but these errors were encountered:
If it's a greedy REGEX, shouldn't the * work just as well as the + metacharacter? I unfortunately am not allowed to connect to our 2007 Exchange server (disabled at the administrative level) or I'd try it out, but theoretically I'm thinking the original code should work just as well as this.
Connecting to an Exchange 2007 server via imap, listMessages() returned an empty array. Reason: the IMAP response line that is being matched in line 1217 had an extra trailing whitespace.
Changing the regex in line 1217 to match the possible trailing whitespace worked for me:
if (preg_match('#^\s*\*\s+STATUS\s+"?INBOX"?\s+\((.*)\)\s+$#', $line, $match)) {
Any idea if the trailing whitespace is an issue of the Exchange servers config?
The text was updated successfully, but these errors were encountered: