Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-2667

Refactoring: push MessageManager::expunge into IMAP layer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • IMAPServer
    • None

    Description

      With an expunged model, we get the deleted metadata after the delete operation proceeded, which is not compatible with PreDeletionHooks design.

      In this ticket, we propose ourselves to implement this expunge mechanism in the IMAP layer :

      -1. Promote List<MessageUid> retrieveDeletedMessage(MessageRange) as a MessageManager method.

      -2. Implement a new void delete(List<MessageUid>) as a MessageManager method.

      -3. Remove MessageManager::expunge & MessageMapper::expungeMarkedForDeletionInMailbox.

      You will need to adapt MessageMapper tests and MessageManager tests accordingly.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rcordier René Cordier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: