Repository navigation
Add ImapEngine v2 support and improve mailbox watcher retries - #8
Draft
stevebauman wants to merge 3 commits into
Draft
stevebauman wants to merge 3 commits into
stevebauman wants to merge 3 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR updates the Laravel integration to work with ImapEngine v2 and raises the minimum PHP version to 8.2.
I’ve updated message fetching to use the new fetch items API, kept body and header fetching from marking messages as read, and updated the mailbox fake to use the v2 factory. The default authentication mechanism is now
login; existing published configurations usingplainoroauthwill need to useloginorxoauth2instead.The
imap:watchcommand now retries connection and stream failures using their exception types instead of matching error messages. Failures that reach the command respect--attempts, disconnect before retrying, and wait two seconds between attempts. Listener exceptions propagate immediately instead of restarting the watcher. I’ve also clarified the timeout units, normalized the requested message parts, and removed the unused--debugoption.This is a draft while the core v2 release is being reviewed in DirectoryTree/ImapEngine#190. The dependency currently targets
2.0.x-devand needs to move to^2.0before release. We also need to resolve the Laravel 10 support claim, since the current CI matrix covers Laravel 11–13.Configuration and connection lifecycle changes will follow separately.