[Dovecot] Shared Squat index for public mailboxes

Robert Schetterer robert at schetterer.org
Wed Oct 10 11:24:49 EEST 2012


Am 10.10.2012 10:06, schrieb Frerich Raabe:
> I already use this; as I mentioned, the index files of the public
> readonly mailbox is stored per-user so that each user has his own set of
> \Seen flags. Here's my public namespace:
> 
> namespace public {
>   separator = /
>   prefix = Lists/
>   location =
> maildir:/home/vmail/lists/Maildir:CONTROL=~/Maildir/lists:INDEX=~/Maildir/lists
> 
>   subscriptions = no
> }
> 
> Alas, this means that *all* index files (including the Squat index) is
> stored per-user whereas I'd just to have just *some* of them per-user. :-)
> 
>> after upgrade come back, ask again, or meanwhile Timo gives better advice
> 
> Does this imply that questions regarding Dovecot 1.2.17 are considered
> offtopic on this list? If so, I apologize - I'll look for another forum
> then.


no wait till others will reply,
indexing questions might be more complex to answer, then i know recent
in short time

perhaps meanwhile this helps

-snip

http://wiki2.dovecot.org/SharedMailboxes/Public

With Maildir a dovecot-shared file controls if the \Seen flags are
shared or private. The file must be created separately inside each
Maildir, although if the file already exists in the Maildir root it's
automatically copied for newly created mailboxes. If dovecot-shared file
doesn't exist in Maildir, the \Seen flags are shared. If it exists, 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 {
  type = public
  separator = /
  prefix = Public/
  location = maildir:/var/mail/public:INDEX=~/Maildir/public
  subscriptions = no
}

Now when accessing e.g. "Public/lkml" mailbox, Dovecot keeps its index
files in ~/Maildir/public/lkml/ directory. If it ever gets deleted, the
\Seen flags are lost.

If you want to change what flags are shared when dovecot-shared file
exists, currently you'll have to modify the source code:
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. See src/lib-mail/mail-types.h for list of
valid flags.

--snip


however if there is a need for some new/debugged/better features relate
to what you asked you have to upgrade to latest dovecot
-- 
Best Regards
MfG Robert Schetterer



More information about the dovecot mailing list