You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by bu...@apache.org on 2010/07/05 16:28:57 UTC

DO NOT REPLY [Bug 49552] New: Add Message Headers on SMTPSampler

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

           Summary: Add Message Headers on SMTPSampler
           Product: JMeter
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Main
        AssignedTo: notifications@jakarta.apache.org
        ReportedBy: moreira@privasphere.com


Created an attachment (id=25707)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25707)
work in progress for header fields

I was not sure if I should create a new RFE or just post on bug45053, sorry if
this is not the right place.

Mail messages can have several headers which are not currently available in the
SMTPSampler. It would be very nice to be able to set this parameter in the
sampler.

I have already started to work on this, attached you will find my work in
progress. 

Currently I am unsure on how to correctly implement a list of variable size of
name/value pairs (header fields). I suppose my solution will be similar to the
Arguments class, can somebody confirm?

My major concern is: How will the file be loaded and a List (or Map) be
created? I know that I have to modify the method SmtpSamplerGUI.configure() but
I don't know which method to call on the TestElement. Should I try to cast this
element to an SMTPSampler and in there set my List/Map?

-- 
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: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


DO NOT REPLY [Bug 49552] Add Message Headers on SMTPSampler

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49552

Sebb <se...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Sebb <se...@apache.org> 2010-07-06 12:19:26 EDT ---
Thanks!

Applied with some fixes.
I also changed the GUI layout as the page was getting too long.

URL: http://svn.apache.org/viewvc?rev=960927&view=rev
Log:
Bug 49552 - Add Message Headers on SMTPSampler

Modified:
   jakarta/jmeter/trunk/docs/images/screenshots/smtp_sampler.png
  
jakarta/jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties
  
jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/SmtpSampler.java
  
jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/gui/SmtpPanel.java
  
jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/gui/SmtpSamplerGui.java
  
jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/protocol/SendMailCommand.java
   jakarta/jmeter/trunk/xdocs/changes.xml
   jakarta/jmeter/trunk/xdocs/images/screenshots/smtp_sampler.png
   jakarta/jmeter/trunk/xdocs/usermanual/component_reference.xml

-- 
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: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


DO NOT REPLY [Bug 49552] Add Message Headers on SMTPSampler

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49552

--- Comment #1 from Luciana Moreira <mo...@privasphere.com> 2010-07-05 10:39:37 EDT ---
I just found out that the SendMailCommand already offers support to setting
headers, see SendMailCommand.setHeaders(). Nevertheless, this is not linked to
the GUI.

-- 
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: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


DO NOT REPLY [Bug 49552] Add Message Headers on SMTPSampler

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49552

--- Comment #2 from Luciana Moreira <mo...@privasphere.com> 2010-07-05 14:26:46 EDT ---
Created an attachment (id=25710)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25710)
Patch to add headers to Mail Messages on SMTPSampler

-- 
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: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org