Bug 45244 - Enhances MailReaderSampler forget top headers
Summary: Enhances MailReaderSampler forget top headers
Status: RESOLVED INVALID
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 enhancement (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on: 45005
Blocks:
  Show dependency tree
 
Reported: 2008-06-20 04:55 UTC by Michael Bolliger
Modified: 2008-06-20 05:12 UTC (History)
2 users (show)



Attachments
MailReaderSampler as .tar (190.00 KB, application/x-tar)
2008-06-20 04:56 UTC, Michael Bolliger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Bolliger 2008-06-20 04:55:21 UTC
We test a system with the mail reader, which doesn't cache the headers and sign the message 2 times. First time the header which is taken with top and the second time when the MailReader retieves the whole message.This is a problem because,  the boundary of the header is different from the message body. In this case it ends in a Boundary-Exception.

this propleme can resolved with the mail properties:

mail.pop3.disabletop=true
mail.pop3.forgettopheaders=true 


I have patched the MailReader with adding a checkbox called "Enable header caching". The source based on the MailReader from BUG 45005.
The default value is false, which means the properties on top will be set for starting the session and the pop session forget the header which is taken with top.

With this patch it's not possible to enable and disable the header caching for all samplers with one option. 

This could be resolved with java properties for example:

starting jmeter with java properties like :mailReader.mail.pop3.disabletop=true
and the MailReader could check if any java property is set for him. When the MailReader finds a property it can now do something with it. In this case set the properties for the pop session to forget the top headers.
Comment 1 Michael Bolliger 2008-06-20 04:56:11 UTC
Created attachment 22152 [details]
 MailReaderSampler as .tar
Comment 2 Sebb 2008-06-20 05:12:14 UTC
It took me a while to realise that this enhancement relates to code that is not part of any JMeter versions.

If you want to add to existing enhancement requests, please either update the original request, or make it very clear at the start that the enhancement relates to proposed code.

In this case, the easiest would be to provide a new patch for bug 45005.

Closing accordingly.
Comment 3 The ASF infrastructure team 2022-09-24 20:37:41 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2127