When I use cyrillic symbols in strings: "from", "to", "cc", "bcc", jmeter doesn't encode this filds in mime according to https://tools.ietf.org/html/rfc2047. It just puts this filds in UTF-8, but should use ASCII with special "tags". See attach
Created attachment 37735 [details] SMTP-session + MIME (Wireshark)
Created attachment 37736 [details] Window from jmeter
Created attachment 37737 [details] Try to encode personal parts of email addresses in SMTP Sampler Currently JMeter thinks, that the creator of the test plan encodes their email addresses used in SMTP Sampler themselves. That is a bit uncomfortable and I think, we can do better. The attached patch tries to guess if encoding is needed and which part of the email should be encoded. Note, that it only tries to encode the personal part, which is everything before a potentially existing '<'. If the real address contains umlauts, the creator of the test plan is still responsible to encode those.
@Alexander, can you try the attached patch and report, if it suits your needs?
@Felix firstly thnx for fast reply. I had not guess that I realy can encode those fields myself. I have tried to do this and it workes. I am a new member. Could you explain how can I apply your patch? First thougth is to go to your git, download src'es and make the same changes. After that I should make new build and try this fixes. Am I right? Is there any simpler case? )
To make it easier for you to test the patch (though it can be applied with `git am PATH-TO-THE-PATCH`) I have submitted a PR (https://github.com/apache/jmeter/pull/644). To get the PRs locally, you have to edit the .git/config file inside the cloned repo. Add "fetch = +refs/pull/*/head:refs/remotes/origin/pr/*" under the section "[remote "origin"]". Next time you do a git pull, you should see all PRs. To checkout pr/644, build and run it, $ git pull && git checkout pr/644 && ./gradlew runGui should do the trick.
@Alexander, could you test next nightly or build from trunk? commit d10b0e54bc2450a0ebd908c28380a91c08e795aa AuthorDate: Sat Feb 20 11:03:02 2021 +0100 Encode the personal part of email addresses in SMTP Sampler Often those personal parts contain umlauts. Try to find these and let MimeUtility encode those as quoted encodings. Bugzilla Id: 65149 Closes #644 on github --- .../jmeter/protocol/smtp/sampler/SmtpSampler.java | 23 ++++++++++++++++++++-- xdocs/changes.xml | 1 + 2 files changed, 22 insertions(+), 2 deletions(-)
Hello, Felix! Sorry for silence. Unfortunately, I had no any time for testing. I will try to test today
I have tried "LATEST (r2015-d10b0e54bc2450a0ebd908c28380a91c08e795aa)" Looks like everithing is ok. I sent messages: with cyrilic symbols (with quotes and without) and with regular latin symbols. Cyrilic text was printable encoded. I recieved readable 'from', 'to', 'cc' in messages.
Created attachment 37751 [details] Wireshark
Created attachment 37752 [details] eml
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/5501