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

Add ESMTP ID as mail attribute by default

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.8.0
    • SMTPServer
    • None

    Description

      During mailet processing it would be helpful to have a link to the originating SMTP session (i.e. ESMTP ID). This allows better traceability in log files and MDC.

      My proposal:

      • add session.getSessionID() as a mail attribute in org.apache.james.smtpserver.AddDefaultAttributesMessageHook
      • add session ID to MDC in org.apache.james.mailetcontainer.impl.ProcessorImpl and making it accessible in the mailetcontainer

      Any thoughts?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ouvtam ouvtam
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 20m
                  20m