[Dovecot] namespaces at v1.0.15
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi, i need to create a public maildir folder for virtual users so i did this:
dovecot-1.0.15:
namespace public { prefix = public/ separator = / location = maildir:/var/mail/shared:INDEX=/var/mail/shared/%u/index/:CONTROL=/var/mail/shared/%u/control/ } namespace private { separator = / prefix = inbox = yes } umask = 007
and everything works fine,
but ... when one user reads an email from the public folder then the status (flag read) changes to all users.
How i can fix this? How every virtual user (same uid.gid) can have its own index (perhaps?)
Evaggelos Balaskas - Unix System Engineer Informatics Engineer Technological Education http://ebalaskas.gr/wk/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIku4ZWIK+Pe9twhoRAokDAJ9u2/SjCqgabHvJFlTXlDART6+sngCghNA/ Ufl8U5GQ0mS3tVUU8idtNwY= =BUGu -----END PGP SIGNATURE-----
On 8/1/2008 7:06 AM, Evaggelos Balaskas wrote:
but ... when one user reads an email from the public folder then the status (flag read) changes to all users.
http://wiki.dovecot.org/SharedMailboxes
Scroll down to 'Flag Sharing' and you find:
"Flag sharing
With Maildir dovecot-shared file controls if the \Seen flags are shared or private. If you don't have the file, they're shared. If you do have the file, the \Seen flag state is stored only in the user's index files. By making each user have their own private index files, you can make the \Seen flag private for the users. For example:
namespace public { prefix = shared. location = maildir:/var/mail/shared:INDEX=~/Maildir/shared }
If you want other flags shared or you don't want \Seen flag shared, you'll have to modify the sources. src/lib-storage/index/maildir/maildir-storage.c maildir_open() has {mbox->ibox.box.private_flags_mask = MAIL_SEEN; Change the MAIL_SEEN to any flag combination you want (or zero). See src/lib-mail/mail-types.h for list of valid flags."
--
Best regards,
Charles
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Am i asking this because i've already read this page:
Unless you're using a single UID for all the users, you'll need to have a dovecot-shared file in each shared maildir
so in my previous email i wrote : (same uid.gid)
and that in the public location i use something like :
maildir:/var/mail/shared:INDEX=/var/mail/shared/%u/index/:CONTROL=/var/mail/shared/%u/control/
i've used the %u variable but didnt work.
PS: Thanks although for the answer.
Charles Marcus wrote:
On 8/1/2008 7:06 AM, Evaggelos Balaskas wrote:
but ... when one user reads an email from the public folder then the status (flag read) changes to all users.
http://wiki.dovecot.org/SharedMailboxes
Scroll down to 'Flag Sharing' and you find:
"Flag sharing
With Maildir dovecot-shared file controls if the \Seen flags are shared or private. If you don't have the file, they're shared. If you do have the file, the \Seen flag state is stored only in the user's index files. By making each user have their own private index files, you can make the \Seen flag private for the users. For example:
namespace public { prefix = shared. location = maildir:/var/mail/shared:INDEX=~/Maildir/shared }
Evaggelos Balaskas - Unix System Engineer Informatics Engineer Technological Education http://ebalaskas.gr/wk/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIkv7FWIK+Pe9twhoRAg40AJ9I5WdbEHtDgYkm9AWgCabdQBf4rQCg1LaA vqK4Od4s1tFrC53LwKPS7NE= =0gxP -----END PGP SIGNATURE-----
On Aug 1, 2008, at 8:17 AM, Evaggelos Balaskas wrote:
Am i asking this because i've already read this page:
Unless you're using a single UID for all the users, you'll need to
have a dovecot-shared file in each shared maildir
Yes, but dovecot-shared also controls whether seen flags are private
or shared. So if you want them to be private, create the dovecot-
shared file.
participants (3)
-
Charles Marcus
-
Evaggelos Balaskas
-
Timo Sirainen