I'm trying to add ":LAYOUT=fs" to the end of the value in the maildir column of the mailbox table. It looks like maildir_name_hook does exactly what I want. I put this in my config.local.php
It works, but $user contains the domain too. Is there another variable I can use instead which only contains the local part of $user? If not, what string operation can I use to cut everything from the @ of $user?
If someone's wondering, what I'm trying to do. I want to use '/' as separator instead of the default '.'
Edit: It doesnt work as expected. Now new emails are delivered to a file called ":LAYOUT=fs" in the root of the virtual mailbox. I guess I need to configure it in Dovecot directly.
Last edit: Thomas Boehm 2017-05-21
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
I'm trying to add ":LAYOUT=fs" to the end of the value in the maildir column of the mailbox table. It looks like maildir_name_hook does exactly what I want. I put this in my config.local.php
It works, but $user contains the domain too. Is there another variable I can use instead which only contains the local part of $user? If not, what string operation can I use to cut everything from the @ of $user?
I tried
but when adding the mailbox I only get a white page and the mailbox is not added.
Thanks
Thomas
Solved it after a bit more research.
seems to work.
If someone's wondering, what I'm trying to do. I want to use '/' as separator instead of the default '.'
Edit: It doesnt work as expected. Now new emails are delivered to a file called ":LAYOUT=fs" in the root of the virtual mailbox. I guess I need to configure it in Dovecot directly.
Last edit: Thomas Boehm 2017-05-21