dovecot-2.2-pigeonhole: doveadm-sieve: Updated to dsync changes ...
pigeonhole at rename-it.nl
pigeonhole at rename-it.nl
Thu Apr 11 21:42:47 EEST 2013
details: http://hg.rename-it.nl/dovecot-2.2-pigeonhole/rev/1a3a4545fa10
changeset: 1749:1a3a4545fa10
user: Stephan Bosch <stephan at rename-it.nl>
date: Thu Apr 11 20:42:41 2013 +0200
description:
doveadm-sieve: Updated to dsync changes in Dovecot mail storage API.
Patch by Timo Sirainen.
diffstat:
src/plugins/doveadm-sieve/doveadm-sieve-plugin.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r aafcff20c8a7 -r 1a3a4545fa10 src/plugins/doveadm-sieve/doveadm-sieve-plugin.c
--- a/src/plugins/doveadm-sieve/doveadm-sieve-plugin.c Sun Apr 07 23:42:04 2013 +0200
+++ b/src/plugins/doveadm-sieve/doveadm-sieve-plugin.c Thu Apr 11 20:42:41 2013 +0200
@@ -323,7 +323,7 @@
union mailbox_module_context *sbox = SIEVE_MAIL_CONTEXT(t->box);
time_t ts = value->last_change != 0 ? value->last_change : ioloop_time;
- if (t->box->storage->user->admin &&
+ if (t->box->storage->user->dsyncing &&
type == MAIL_ATTRIBUTE_TYPE_PRIVATE &&
strncmp(key, MAILBOX_ATTRIBUTE_PREFIX_SIEVE,
strlen(MAILBOX_ATTRIBUTE_PREFIX_SIEVE)) == 0) {
@@ -460,7 +460,7 @@
{
union mailbox_module_context *sbox = SIEVE_MAIL_CONTEXT(t->box);
- if (t->box->storage->user->admin &&
+ if (t->box->storage->user->dsyncing &&
type == MAIL_ATTRIBUTE_TYPE_PRIVATE &&
strncmp(key, MAILBOX_ATTRIBUTE_PREFIX_SIEVE,
strlen(MAILBOX_ATTRIBUTE_PREFIX_SIEVE)) == 0)
@@ -503,7 +503,8 @@
siter->iter.box = box;
siter->super = sbox->super.attribute_iter_init(box, type, prefix);
- if (box->storage->user->admin && type == MAIL_ATTRIBUTE_TYPE_PRIVATE &&
+ if (box->storage->user->dsyncing &&
+ type == MAIL_ATTRIBUTE_TYPE_PRIVATE &&
strncmp(prefix, MAILBOX_ATTRIBUTE_PREFIX_SIEVE,
strlen(prefix)) == 0) {
if (sieve_attribute_iter_script_init(siter) < 0)
More information about the dovecot-cvs
mailing list