Shared instance

Stepan Khlebalov step at line7.ru
Fri Jan 25 12:29:01 EET 2019


I don't want such mailbox.

I have inbox namespace

mail_location = maildir:/mailStorage/%Ld/%Ln:LAYOUT=fs

namespace inbox {
   type = private
   separator = /
   prefix =
   inbox = yes
}

and another private namespace used for archiving

namespace archive {
  prefix = archived/
  inbox = no
  type = private
  location = maildir:/mailStorageArchive/%Ld/%Ln:LAYOUT=fs
  mailbox Archive {
   auto = subscribe
   special_use = \Archive
  }
  mailbox Archive_Sent {
   auto = subscribe
   special_use = \Archive
  }
}

When I create shared namespace like this

namespace {
   type = shared
   separator = /
   prefix = shared/%%u/
   location = 
maildir:/mailStorage/%%d/%%n:INDEXPVT=/mailStorage/%d/%u/shared/%%u
   subscriptions = yes
   list = children
}
it works.

When I create shared namespace like this

namespace {
   type = shared
   separator = /
   prefix = shared/%%u/
   location = 
maildir:/mailStorageArchive/%%d/%%n:INDEXPVT=/mailStorageArchive/%d/%u/shared/%%u
   subscriptions = yes
   list = children
}
it does not work.

I want to share mailbox Archive from namespace archive.


On 25.01.2019 12:47, Aki Tuomi wrote:
> A namespace can have only one location. If you want to create mailbox 
> with content from multiple locations you can use virtual plugin for this.
>
> Aki
>> On 25 January 2019 at 09:45 Stepan Khlebalov < step at line7.ru 
>> <mailto:step at line7.ru>> wrote:
>>
>>
>> I have read already. Probably not so carefully but do not find any 
>> for multiple location option inside namespace.
>>
>> On 25.01.2019 12:33, Aki Tuomi wrote:
>>> You should probably read https://wiki.dovecot.org/SharedMailboxes
>>> Aki
>>> On 25.1.2019 9.32, Stepan Khlebalov via dovecot wrote:
>>>> My failure. Replace instance with namespace.
>> >> On 25.01.2019 12:27, Aki Tuomi wrote:
>> >>> On 25.1.2019 8.39, Stepan Khlebalov via dovecot wrote:
>> >>>> Hello.
>> >>>>
>> >>>> I have inbox instance for incoming messages and second private
>> >>>> instance for archiving mails with different maildir location.
>> >>>>
>> >>>> Sharing for folders in inbox instance works perfectly. But it 
>> does not
>> >>>> work for folders in archiving instance.
>> >>>>
>> >>>> I can't create two shared instances, dovecot fails.
>> >>>>
>> >>>> Can I have two locations in one shared instance?
>> >>>>
>> >>>>
>> >>>>
>> >>> What do you mean with "shared instance"?
>> >>>
>> >>> Aki
>> >>>
>
> ---
> Aki Tuomi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dovecot.org/pipermail/dovecot/attachments/20190125/91e90fb8/attachment.html>


More information about the dovecot mailing list