@@ -244,7 +244,7 @@ namespace {
244244namespace {
245245 type = shared
246246 separator = /
247- prefix = shared/%%u /
247+ prefix = shared/$user /
248248 mail_path = %{owner_home}/Maildir
249249 mail_index_private_path = ~/Maildir/shared/%{owner_user}
250250 # If users have direct filesystem level access to their mails, it's safer
@@ -266,15 +266,20 @@ protocol imap {
266266acl_driver = vfile
267267```
268268
269- This creates a shared/ namespace under which each user's mailboxes are.
269+ This creates a ` shared/ ` namespace under which each user's mailboxes are.
270270If you have multiple domains and allow sharing between them, you might
271- want to set ` prefix= shared/%%d/%%n/ ` instead (although %%u works just
272- fine too). If you don't, you might want to drop the domain part and
273- instead use ` prefix= shared/%%n/ ` .
271+ want to set [[ setting,namespace_prefix, shared/$domain/$username/ ]] instead
272+ (although ` $user ` works just fine too). If you don't, you might want to drop
273+ the domain part and instead use [[ setting,namespace_prefix, shared/$username/ ]] .
274274
275- ` list=children ` specifies that if no one has shared mailboxes to the
276- user, the "shared" directory isn't listed by the LIST command. If you
277- wish it to be visible always, you can set ` list=yes ` .
275+ [[ changed,namespace_prefix_shared_variables_changed]] The shared namespaces
276+ now use ` $user ` , ` $username ` and ` $domain ` template variables, rather than
277+ the old ` %%u ` , ` %%n ` and ` %%d ` .
278+
279+ [[ setting,namespace_list,children]] specifies that if no one has shared
280+ mailboxes to the user, the "shared" directory isn't listed by the LIST command.
281+ If you wish it to be visible always, you can set
282+ [[ setting,namespace_list,yes]] .
278283
279284The sharing user can be accessed with ` %{owner_user} ` , ` %{owner_username} ` and
280285` %{owner_domain} ` variables. The sharing user's home directory can also be
@@ -512,7 +517,10 @@ initially have "lookup" right, but later we don't:
512517
513518### Troubleshooting
514519
515- - Make sure the ` % ` and ` %% ` variables are specified correctly in the
520+ - Make sure ` $user ` or ` $username ` is specified in the
521+ [[ setting,namespace_prefix]] setting rather than the old ` %%u ` or ` %%n ` .
522+
523+ - Make sure the [[ setting,mail_path]] is set correctly in the
516524 namespace location. [[ setting,log_debug,category=mail]] will help you see
517525 if Dovecot is trying to access correct paths.
518526
0 commit comments