Using dovecot 1.0.10. In the config: namespace public { separator = / hidden = no prefix = Flock/ location = maildir:/home/baratin/PublicMaildir:CONTROL=~/Maildir/control/Flock:INDEX=/var/dovecot/index/%u/Flock } This should be a public mail folder owned by "baratin", "read only" for all other users. Every user has his/her own control and index area related to this public folder. I have verified, they are owner and "group" of the respective control and index area. The problem, while using Thunderbird: The "read only" user can delete messages or mark then read. But after a new session, all the messages are still "new". Of course, only "baratin" is the owner. The problem, while using mutt and IMAP: mutt refuse to change any flag because the folder is "read only". Of course, this is correct. My question: Why is no bookkeeping maintained for "other" users, although every one has his/her own control and index structure ? Thanks a lot ! Claude
On Mon, 2008-05-19 at 09:17 +0200, Claude Frantz wrote:> The problem, while using Thunderbird: The "read only" user can delete > messages or mark then read. But after a new session, all the messages > are still "new". Of course, only "baratin" is the owner. > > The problem, while using mutt and IMAP: mutt refuse to change any flag > because the folder is "read only". Of course, this is correct. > > My question: Why is no bookkeeping maintained for "other" users, > although every one has his/her own control and index structure ?So you'd want all users to be able to have their own private flags? If you create dovecot-shared file, the seen flag will be private, but others will still be shared. This is currently hard coded, but it's pretty easy to change from sources if you really want to: src/lib-storage/index/maildir/maildir-storage.c around line 544: mbox->private_flags_mask = MAIL_SEEN; Change that to: mbox->private_flags_mask = MAIL_FLAGS_MASK; -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20080525/dff77185/attachment-0002.bin>
Timo Sirainen wrote:>> The problem, while using Thunderbird: The "read only" user can delete >> messages or mark then read. But after a new session, all the messages >> are still "new". Of course, only "baratin" is the owner.> So you'd want all users to be able to have their own private flags?The "Seen" flag as private is sufficient here.> If > you create dovecot-shared file, the seen flag will be private, but > others will still be shared. This is currently hard coded, but it's > pretty easy to change from sources if you really want to:[....] Many thanks, Timo, for this interesting information. But, as stated above, the "Seen" flag is sufficient and this is the default. The strange behaviour seems to be probably related to Thunderbird. When opening the connection to the public shared folder, Thunderbird shows the number of ALL messages in the folder, in the window in which one the folders related to the accounts are displayed. Usually only the number of unread messages is displayed here. In the window showing the subject, sender, etc... of the messages, only the unread messages are displayed when using the options "View, Threads, Unread". Therefore, Thunderbird knowns about what has been read. But I ignore if Thunderbird is using an own bookkeeping or if this information comes from the server. In the related "dovecot-keywords" file, there is only one line which contains "0 unknown-0". This seems strange to me. Please explain me, where the "private seen flag" is located. I think, it cannot be in "dovecot-uidlist" because the second entry in every line is the filename in the folder where the message file is located, and the "only reading" user is not the owner of this file. Are I'm right ? I think, I have to investigate further. Many thanks again, Claude