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

IMAP APPEND fails when inMemorySizeLimit is exceeded

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.5.0
    • 3.6.0
    • IMAPServer
    • None

    Description

      When the APPENDed message exceeds the memory size limit, ImapRequestFrameDecoder allocates a file scoped to command decoding and not command execution.

      We need to review the lifecycle of this file in order to dispose it only after the command being executed.

      My idea would be to register closeables to the channel and dispose them once the message is processed.

      Such a move will allow using files instead of memory for large mails, reducing the memory footprint of large APPEND.

      Note that server/protocols/imap is not tested so as part of this ticket, as we need to write a faulty test, we also need to write such tests.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              btellier Benoit Tellier
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m