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

Make it possible to share MimeMessageSource till the message body needs to get altered

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: James Core
    • Labels:
      None

      Description

      At the moment as soon as the message content needs to get altered we "copy" the whole MimeMessage (when it is shared between Mail instances). Thats a waste of resources, when only the headers are modified (which is the case most of the time). We should better copy the headers into memory if needed and do the modification there. Then when write back the MimeMessage into the queue/store/etc we would just read the headers from memory and skip to read them from the MimeMessageSource.

      That would be a way more efficient,

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: