https://issues.apache.org/bugzilla/show_bug.cgi?id=47713

           Summary: SMTPAppender system properties propagation issue
           Product: Log4j
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Appender
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Jesper <[email protected]> 2009-08-20 03:11:19 PDT 
---
The properties passed in from command line (via -D) is not available to the
underlying java mail implementation.

The issue is that com.sun.mail.util.SocketFetcher uses
com.sun.mail.util.PropUtil to get properties, but this class uses
properties.get (vs. getProperty), where the properties added from SMTPAppender
is added via new Properties(defaultProps). 

The effect is that PropUtil->properties.get does not check the defaultProps for
values and hence won't find any added from SMTPAppender.

Of course you could argue the issue is with com.sun.mail.util.PropUtil..

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to