Skip to content
Snippets Groups Projects
Commit 5621b7cd authored by Stephan Bosch's avatar Stephan Bosch
Browse files

lib-sieve: editheader extension: added utf8-decoding-related testsuite item.

parent 9e662c12
No related branches found
No related tags found
No related merge requests found
...@@ -47,3 +47,51 @@ test "UTF8 - add; get" { ...@@ -47,3 +47,51 @@ test "UTF8 - add; get" {
} }
} }
test_result_reset;
test_set "message" text:
Subject: Frop!
Comment: Ein =?utf-8?q?unerh=C3=B6rt_gro=C3=9Fer?= Test
X-Spam: no
From: stephan@example.com
To: stephan@example.com
Frop!
.
;
test "UTF8 - existing; delete other; get" {
set "comment" "Ein unerh${unicode:00F6}rt gro${unicode:00DF}er Test";
deleteheader "x-spam";
if not exists "comment" {
test_fail "header not present";
}
if not header :is "comment" "${comment}" {
test_fail "wrong content retrieved";
}
redirect "frop@example.com";
if not test_result_execute {
test_fail "failed to execute result";
}
/* redirected message */
if not test_message :smtp 0 {
test_fail "message not redirected";
}
if not exists "comment" {
test_fail "header not present in redirected mail";
}
if not header :is "comment" "${comment}" {
test_fail "wrong content retrieved from redirected mail";
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.