chayes at afo.net
2020-Mar-09 17:22 UTC
how to create Drafts, Junk, Sent, Trash folders after user already created
Hello Dovecot, Do to a misconfiguration, I have a bunch of users who do not have the standard folders. I can create a routine to cycle through the users and look for the folders and run a command if there is one. Is there a way to create the proper namespace for a user after the user has already been created? Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20200309/bbc5a21d/attachment.html>
Aki Tuomi
2020-Mar-09 17:24 UTC
how to create Drafts, Junk, Sent, Trash folders after user already created
> On 09/03/2020 19:22 chayes at afo.net wrote: > > > Hello Dovecot, > Do to a misconfiguration, I have a bunch of users who do not have the standard folders. > I can create a routine to cycle through the users and look for the folders and run a command if there is one. > Is there a way to create the proper namespace for a user after the user has already been created? > Thanks in advance.namespace { ... mailbox Drafts { auto=create } ... } Aki
Sami Ketola
2020-Mar-09 17:28 UTC
how to create Drafts, Junk, Sent, Trash folders after user already created
> On 9 Mar 2020, at 19.24, Aki Tuomi <aki.tuomi at open-xchange.com> wrote: > > >> On 09/03/2020 19:22 chayes at afo.net wrote: >> >> >> Hello Dovecot, >> Do to a misconfiguration, I have a bunch of users who do not have the standard folders. >> I can create a routine to cycle through the users and look for the folders and run a command if there is one. >> Is there a way to create the proper namespace for a user after the user has already been created? >> Thanks in advance. > > namespace { > ... > > mailbox Drafts { > auto=create > } > > ... > }or better yet use auto=subscribe to also subscribe the folders. Sami
chayes at afo.net
2020-Mar-09 20:59 UTC
FW: how to create Drafts, Junk, Sent, Trash folders after user already created
Thanks for the suggestions, but I need to do this after users have been created. Would this be the best way? To run this for each user: doveadm mailbox create -u $username -s Drafts doveadm mailbox subscribe -u $username Drafts doveadm mailbox create -u $username -s Junk doveadm mailbox subscribe -u $username Junk doveadm mailbox create -u $username -s Sent doveadm mailbox subscribe -u $username Sent doveadm mailbox create -u $username -s Trash doveadm mailbox subscribe -u $username Trash From: dovecot <dovecot-bounces at dovecot.org> On Behalf Of chayes at afo.net Sent: Monday, March 9, 2020 12:22 PM To: dovecot at dovecot.org Subject: how to create Drafts, Junk, Sent, Trash folders after user already created Hello Dovecot, Do to a misconfiguration, I have a bunch of users who do not have the standard folders. I can create a routine to cycle through the users and look for the folders and run a command if there is one. Is there a way to create the proper namespace for a user after the user has already been created? Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20200309/5ca3868f/attachment-0001.html>
Sami Ketola
2020-Mar-10 07:40 UTC
how to create Drafts, Junk, Sent, Trash folders after user already created
> On 9 Mar 2020, at 22.59, chayes at afo.net wrote: > > Thanks for the suggestions, but I need to do this after users have been created. > Would this be the best way? > To run this for each user: > doveadm mailbox create -u $username -s Drafts > doveadm mailbox subscribe -u $username Drafts > doveadm mailbox create -u $username -s Junk > doveadm mailbox subscribe -u $username Junk > doveadm mailbox create -u $username -s Sent > doveadm mailbox subscribe -u $username Sent > doveadm mailbox create -u $username -s Trash > doveadm mailbox subscribe -u $username Trash >Just add the settings suggested. Then the folders will be autocreated by dovecot on the next user access. Sami -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20200310/59c33034/attachment.html>
Apparently Analagous Threads
- FW: how to create Drafts, Junk, Sent, Trash folders after user already created
- how to create Drafts, Junk, Sent, Trash folders after user already created
- how to automatically delete folders from Trash after x days
- FW: Panic: Message unexpectedly expunged from index
- Best way to upgrade from 1.0a4 to 1.0a5