Validation on the Outbox and Inbox for IMAP Approval/Rejection Configuration

When configuring approval/rejection systems via email using the IMAP protocol, it is important to validate the inboxes and outboxes of the email before the first synchronization. It is essential to ensure that there are no “unread” emails in the inboxes and outboxes. This initial procedure is crucial to ensure that the synchronization process occurs smoothly and that the functionality of the system is not affected by old or irrelevant messages.