dovecot-2.0-pigeonhole: Enotify extension: set default importanc...
pigeonhole at rename-it.nl
pigeonhole at rename-it.nl
Sat Jan 23 01:47:47 EET 2010
details: http://hg.rename-it.nl/dovecot-2.0-pigeonhole/rev/50c429139d63
changeset: 1215:50c429139d63
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 e7236b82d938 -r 50c429139d63 src/lib-sieve/plugins/enotify/cmd-notify.c
--- a/src/lib-sieve/plugins/enotify/cmd-notify.c Sat Jan 23 00:45:11 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 e7236b82d938 -r 50c429139d63 tests/extensions/enotify/mailto.svtest
--- a/tests/extensions/enotify/mailto.svtest Sat Jan 23 00:45:11 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