Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Fixed issue where campaign's email replies were not recognized #7445
Please be sure you are submitting this against the staging branch.
This was hard to reproduce and required just the right HTML. I was only able to reproduce it once but was able to grab the HTML that did and so created a unit test. In some cases, the HTML caused the preg_match to include HTML form the unsubscribe link so the stat wasn't found. This PR thus updates the regex to be more strict so that it only matches the gif's tracking hash ID.
The PR also prevented a PHP notice and set timeouts for all imap functions to prevent locked web requests due to bad ports.
Steps to reproduce the bug:
For the timeout issue, I was able to reproduce it by configuring an open non-imap port like 80. I couldn't reload the config after that.
Steps to test this PR: