mirror of
https://github.com/root-fr/jmap-webmail.git
synced 2026-09-26 00:01:19 +00:00
DRY: extract DEFAULT_MAILBOX_RIGHTS, EMAIL_LIST_PROPERTIES, namespaceMailboxIds(), computeHasMore(), buildStatePollingRequest(), STATE_TYPE_MAP, and parseEmailHeaders() to eliminate duplication across multiple methods. Simplify getContacts, batchMarkAsRead, batchMoveEmails, connect, getBlobDownloadUrl, getEventSourceUrl, and ping with cleaner patterns. Remove redundant comments and leftover console.log debug statements.