On Mon, Jun 04, 2007 at 05:50:01AM +0300, Timo Sirainen wrote:
On Sun, 2007-06-03 at 22:26 -0400, Adam McDougall wrote: > On Mon, Jun 04, 2007 at 04:28:56AM +0300, Timo Sirainen wrote: > > ACL plugin shouldn't have anything to do with that decision. The \Seen > flag is stored privately if you have created dovecot-shared file to the > maildir. > > Is it possible to have dovecot enforce the file mode and group owner of > inserted mails without causing flags to be stored privately? Its looking > like I will have to use a cron job to fix file permissions on mails added > to shared mail folders by imap clients. I'd be willing to implement a > local permanent patch but I haven't looked into how easy it would be yet > because I did not (until now) realize that this behavior was intended. src/lib-storage/index/maildir/maildir-storage.c around line 539: mbox->private_flags_mask = MAIL_SEEN; Set that to 0. Thanks, finally got around to testing it in my environment and it seems to work fine.