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

Make MimeMessageWrapper copy of Message configurable

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.0, 2.3.1, 2.3.2, 3.0-M1
    • 3.0-M2
    • James Core
    • None

    Description

      MimeMessageWrapper store the whole message content into a byte array if it is constructed from a MimeMessage. This is fast but can raise the memory usage while processing many mails. The copy is only triggered when you have Matchers which not match all or none recipients, but even then its only needed when the message must be altered.

      So often the Message is not copied at all. Neverless we should make it configurable to use a temporary file for the copy to save memory. This is best implemented by using a System property

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            norman Norman Maurer
            norman Norman Maurer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment