Bug 49622 - Allow sending messages without a subject
Summary: Allow sending messages without a subject
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: Nightly (Please specify date)
Hardware: PC Linux
: P2 enhancement (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
Depends on:
Reported: 2010-07-20 10:25 UTC by Luciana Moreira
Modified: 2010-08-16 16:58 UTC (History)
2 users (show)

Patch to allow removing the subject header (12.98 KB, text/plain)
2010-07-21 03:08 UTC, Luciana Moreira

Note You need to log in before you can comment on or make changes to this bug.
Description Luciana Moreira 2010-07-20 10:25:17 UTC
One test to verify if mail systems are able to handle unusual messages is to send messages without a subject.

To allow this I have created a patch that enhances the functionality of the SMTP Sampler in JMeter.

This patch is attached, and consists of a simple check box to determine if the subject should be empty or not.
Comment 1 Sebb 2010-07-20 14:23:40 UTC
There is no attachment.

Also, the SMTP sampler already allows both the Subject and Body to be empty, so I don't think any change is needed.
Comment 2 Ralf Hauser 2010-07-21 01:16:49 UTC
There is a difference between an empty string being in the "Subject" MIME-Header and no "Subject" MIME-Header altogether.

There are real-world mail clients out there that send messages without the subject and also we noticed that there are mail-programs that are not prepared to handle such messages. Therefore, the SMTP sampler would benefit from having this extra feature.
Comment 3 Luciana Moreira 2010-07-21 03:08:51 UTC
Created attachment 25791 [details]
Patch to allow removing the subject header
Comment 4 Luciana Moreira 2010-07-21 03:12:50 UTC
I believe I did not explain it properly. As Ralf said, this is not about setting the string to "" it is about removing the Subject header.

We have seen messages arriving in our mail server in such conditions. This was the reason to enhance the JMeter functionality to allow stress testing the server with this kind of message.
Comment 5 Sebb 2010-07-21 07:03:17 UTC
OK, understood.
Comment 6 Sebb 2010-08-16 16:58:45 UTC
Thanks for the patch.

I changed the message from "Empty Subject" to "Suppress Subject Header" to make it clearer what the checkbox does, and fixed the component_reference patch.

URL: http://svn.apache.org/viewvc?rev=986129&view=rev
Bug 49622 - Allow sending messages without a subject (SMTP Sampler)