Closed einhirn closed 4 weeks ago
Another Issue we ran into with our Exchange server was that we couldn't get this to work with "To" parsing - the header line sure was correct, but I guess that Exchange IMAP doesn't care about that line so much as to return some generic name/line for the mailbox's email-address... Since it worked with "Subject"-Parsing, which seemed more easily accessible anyway, I didn't debug this thing further and didn't want to open another Issue for that.
The upcoming release will have a config option to select the server encoding.
Solved by 1.4.0
When trying to deploy this plugin we ran into
Internal Error: Could not search mailbox!
After some jiggery-pokery we arrived at the relevant info, dumping the exception. This gave us
which led us to the following part of php-imap
the relevant part being
Disables server encoding while searching for mails (can be useful on Exchange servers)
. We applied this to https://github.com/creecros/Mailmagik/blob/15013ff4d79e6fb8b3a15f7e0d01ab06cc080145/Helper/MailHelper.php#L152 by adding a,true
after$filter
and this fixed the issue.I don't know if there's a way to auto detect it or whether to disable it by default or make it configurable, but here it is.