[Kolab-devel] permissions for sieve to store user flags

Timotheus Pokorra timotheus at pokorra.de
Wed Aug 28 15:01:39 CEST 2013

I wonder if somebody has an idea about this:
How can I give the sieve process w acl permissions to write user defined

Here the full story:
I am trying to add a plugin to roundcube that stores labels or flags with
the emails.

I modified the message_label plugin to store IMAP4flags similar to

Then I modified the managesieve plugin to support user defined labels.
But I noticed that the user defined label is not applied.
First I thought the reason is that cyrus sieve does not support imap4flags

But it does store the user defined flags fine through roundcube:

Then I found out that the problem is a permissions problem.
The user that is setting the user flag needs to have write permissions.
That fits the description at
for w: The user may modify flags and keywords other than "Seen" and
"Deleted" (which are controlled by other sets of rights).

The question is:
which user is used by sieve to set the flags?
I could then use http://www.php.net/manual/en/function.imap-setacl.php to
set the acl for that user.

Or am I completely on the wrong track?

Thanks for any suggestions!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kolab.org/pipermail/devel/attachments/20130828/21b4edef/attachment.html>

More information about the devel mailing list