James Server
  1. James Server
  2. JAMES-1100

Make MimeMessageWrapper copy of Message configurable

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0, 2.3.1, 2.3.2, 3.0-M1
    • Fix Version/s: 3.0-M2
    • Component/s: James Core
    • Labels:
      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

        Activity

          People

          • Assignee:
            Norman Maurer
            Reporter:
            Norman Maurer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development