DEV: Review fixes for ImapSyncLog (PR #10641)

See comments in https://review.discourse.org/t/dev-imap-log-to-database-10435/14337/6 for context.

GitHub