Agent/listing related mails - #414
Conversation
Provider-specific scan interval
Add IMAP inbox foundation
Match incoming mail to listings
Add mail inbox UI and application status workflow
Harden incoming mail synchronization
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7b6552eace
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| WHEN mail_accounts.host <> excluded.host | ||
| OR mail_accounts.username <> excluded.username | ||
| OR mail_accounts.mailbox <> excluded.mailbox |
There was a problem hiding this comment.
Reset the IMAP cursor when the endpoint changes
When a user changes only port or secure, these conditions preserve the previous uid_validity and last_uid, even though both fields alter the endpoint used by performMailAccountSync. If the new endpoint reports the same UIDVALIDITY—a value that is not globally unique—the next sync resumes from the old server's UID and can permanently skip messages whose UIDs are below that cursor. Include port and secure in both cursor-reset conditions.
Useful? React with 👍 / 👎.
Summary
This feature displays all emails associated with a property directly on the listing details page.
Users can see:
Email privacy is preserved. Related emails are only visible to the mailbox owner, even when a listing is shared with another user.
Validation