dovecot-1.2-sieve: Enotify extension: set default importance to ...
pigeonhole at rename-it.nl
pigeonhole at rename-it.nl
Fri Jan 22 16:35:43 EET 2010
details: http://hg.rename-it.nl/dovecot-1.2-sieve/rev/84a8e1a7ed6a
changeset: 1219:84a8e1a7ed6a
user: Stephan Bosch <stephan at rename-it.nl>
date: Fri Jan 22 15:28:07 2010 +0100
description:
Enotify extension: set default importance to normal as required.
diffstat:
src/lib-sieve/plugins/enotify/cmd-notify.c | 2 +-
tests/extensions/enotify/mailto.svtest | 7 +++++++
2 files changed, 8 insertions(+), 1 deletions(-)
diffs (29 lines):
diff -r 77fcb66823bf -r 84a8e1a7ed6a src/lib-sieve/plugins/enotify/cmd-notify.c
--- a/src/lib-sieve/plugins/enotify/cmd-notify.c Thu Jan 21 00:00:02 2010 +0100
+++ b/src/lib-sieve/plugins/enotify/cmd-notify.c Fri Jan 22 15:28:07 2010 +0100
@@ -410,7 +410,7 @@
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;
diff -r 77fcb66823bf -r 84a8e1a7ed6a tests/extensions/enotify/mailto.svtest
--- a/tests/extensions/enotify/mailto.svtest Thu Jan 21 00:00:02 2010 +0100
+++ b/tests/extensions/enotify/mailto.svtest Fri Jan 22 15:28:07 2010 +0100
@@ -33,6 +33,13 @@
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";
+ }
}
/*
More information about the dovecot-cvs
mailing list