jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1464574 - in /jmeter/trunk: src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/protocol/SendMailCommand.java xdocs/changes.xml
Date Thu, 04 Apr 2013 14:40:13 GMT
Author: pmouawad
Date: Thu Apr  4 14:40:13 2013
New Revision: 1464574

URL: http://svn.apache.org/r1464574
Log:
Bug 54798 - Using subject from EML-file for SMTP Sampler
Bugzilla Id: 54798

Modified:
    jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/protocol/SendMailCommand.java
    jmeter/trunk/xdocs/changes.xml

Modified: jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/protocol/SendMailCommand.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/protocol/SendMailCommand.java?rev=1464574&r1=1464573&r2=1464574&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/protocol/SendMailCommand.java
(original)
+++ jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/protocol/SendMailCommand.java
Thu Apr  4 14:40:13 2013
@@ -219,8 +219,10 @@ public class SendMailCommand {
             message.setReplyTo(replyTo.toArray(to));
         }
 
-        message.setSubject(subject);
-
+        if(null != subject) {
+            message.setSubject(subject);
+        }
+        
         if (receiverTo != null) {
             InternetAddress[] to = new InternetAddress[receiverTo.size()];
             receiverTo.toArray(to);

Modified: jmeter/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/xdocs/changes.xml?rev=1464574&r1=1464573&r2=1464574&view=diff
==============================================================================
--- jmeter/trunk/xdocs/changes.xml (original)
+++ jmeter/trunk/xdocs/changes.xml Thu Apr  4 14:40:13 2013
@@ -84,6 +84,8 @@ This does not affect JMeter operation.
 
 <h2>Incompatible changes</h2>
 
+<p>SMTP Sampler now uses eml file subject if subject field is empty</p>
+
 <!-- =================== Bug fixes =================== -->
 
 <h2>Bug fixes</h2>
@@ -144,6 +146,7 @@ This does not affect JMeter operation.
 <h3>Other samplers</h3>
 <ul>
 <li><bugzilla>54788</bugzilla> - JMS Point-to-Point Sampler - GUI enhancements
to increase readability and ease of use</li>
+<li><bugzilla>54798</bugzilla> - Using subject from EML-file for SMTP Sampler</li>
 </ul>
 
 <h3>Controllers</h3>



Mime
View raw message