As I see in 2.0 there willn't be ability to control which flags should be shared, and which should be per-user. But may be there is some plans to implement settings to control that? It'll be great if you can write in dovecot-shared file which flags should be per-user. It's very usefull for group mailboxes, when each user should work with such mailbox like with their own. Now I can't add permission for delete on group mailbox for anybody, because if somebody delete a message, it dissapear for other users of group mailbox. So my group mailboxes look like a big scrapyard[?] I can compile from sources and add also \Deleted flag to private flags, but it's not an elegant solution[?] And my idea is easy to implement :) Only add here: 305 shared_path = t_strconcat(box->path, "/dovecot-shared", NULL); 306 if (stat(shared_path, &st) == 0) 307 box->private_flags_mask = MAIL_SEEN; in maildir-storage.c some code for reading a mask from dovecot-shared file. Unfortunatelly I'm not a good programmer, so I can't make a patch myself((( -------------- next part -------------- A non-text attachment was scrubbed... Name: 323.gif Type: image/gif Size: 100 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20100408/5982e31b/attachment-0004.gif> -------------- next part -------------- A non-text attachment was scrubbed... Name: 330.gif Type: image/gif Size: 96 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20100408/5982e31b/attachment-0005.gif>
On Thu, 2010-04-08 at 00:20 +0400, ????????? ????? wrote:> As I see in 2.0 there willn't be ability to control which flags should be > shared, and which should be per-user. But may be there is some plans to > implement settings to control that? > > It'll be great if you can write in dovecot-shared file which flags should be > per-user.I've been planning on doing that for a long time, but haven't gotten around to it..> And my idea is easy to implement :) Only add here: > > 305 shared_path = t_strconcat(box->path, "/dovecot-shared", NULL); > 306 if (stat(shared_path, &st) == 0) > 307 box->private_flags_mask = MAIL_SEEN; > > in maildir-storage.c some code for reading a mask from dovecot-shared file. > Unfortunatelly I'm not a good programmer, so I can't make a patch myself(((System flags are easy, but keywords are more problematic probably. It probably should be possible to define what existing keywords are private and also if the default for them should be shared or private. Maybe in general the configuration for both flags/keywords should be "private, except .." or "shared, except .." -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20100416/696346f2/attachment-0002.bin>