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

Enotify extension: set default importance to normal as required.

parent a0b5c2fc
No related branches found
No related tags found
No related merge requests found
......@@ -410,7 +410,7 @@ static int cmd_notify_operation_execute
void *method_context;
pool_t pool;
int opt_code = 1, result = SIEVE_EXEC_OK;
sieve_number_t importance = 1;
sieve_number_t importance = 2;
struct sieve_coded_stringlist *options = NULL;
const struct sieve_enotify_method *method;
string_t *method_uri, *message = NULL, *from = NULL;
......
......@@ -33,6 +33,13 @@ test "Simple" {
if not exists "X-Sieve" {
test_fail "x-sieve header missing from outgoing message";
}
if anyof (
not header :matches "x-priority" "3 *",
not header "importance" "normal") {
test_fail "default priority is not normal";
}
}
/*
......
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.