 |
|
|
Issue Type:
|
Bug
|
Affects Versions:
|
1.0.6 |
Assignee:
|
Logback dev list
|
Components:
|
logback-core |
Created:
|
05/Jul/12 9:36 PM
|
Description:
|
sendBuffer method reuses mimeMsg field to send emails. Sending emails is done asynchronously in threads. This results into sending invalid messages, for example subject may come from a different message. As a quick and dirty fix the "sendBuffer" method can be declared as synchronized. A better approach would be to create an instance of MimeMessage for every email to be sent.
P.S. While scrutinizing this module I also noticed that "cb.asList();" line in the "append" method seems to be doing nothing and hence brings an unnecessary minor performance impact.
|
Project:
|
logback
|
Priority:
|
Major
|
Reporter:
|
Yuri Cherio
|
|
|
|