1 (edited by randoof 2013-10-12 06:38:36)

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
====

Hi there, 
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
INBOX
    -sub_folder
        --child_sub_folder

I already have one user who has created their own subfolders and it works with the following structure:

/var/vmail/vmail1/domain.com/i/n/f/info-2013.10.11.16.04.29/Maildir/.INBOX.sub_folder
/var/vmail/vmail1/domain.com/i/n/f/info-2013.10.11.16.04.29/Maildir/.INBOX.sub_folder.child_sub_folder

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
here

Thanks

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.