Topic: How can I create Inbox subfolders through a script?
==== Required information ====
- iRedMail version: 0.8.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Ubuntu 12.04 SE LTS
- Related log if you're reporting an issue: n/a
In certain situations (archiving for example), I would like to be able to run a script that creates new subfolders for a user's Inbox.
The structure would be something like
I already have one user who has created their own subfolders and it works with the following structure:
but if I manually create the same structure for another using bash and chown vmail, chmod 0700, the folders don't appear in either thunderbird or roundcube, so is there another step that I need? I have also moved emails into the subfolder using bash "mv".
**EDIT** : OK, I worked it out, you need to add the folders to the subscriptions file as well. I have documented a tutorial