tbrehm
2010-06-04 0fc28c073df593500a69b8d74c32c7a5cddb6fba
Fixed: FS#1192 - wrong owner group of .Drafts, .Sent, .Junk, .Trash folders
1 files modified
4 ■■■ changed files
server/lib/classes/system.inc.php 4 ●●● patch | view | raw | blame | history
server/lib/classes/system.inc.php
@@ -1202,7 +1202,9 @@
        
        if($user != '' && $this->is_user($user) && $user != 'root') {
            $user = escapeshellarg($user);
            exec("chown $user $dir $dir_cur $dir_new $dir_tmp");
            // I assume that the name of the (vmail group) is the same as the name of the mail user in ispconfig 3
            $group = $user;
            exec("chown $user:$group $dir $dir_cur $dir_new $dir_tmp");
        }
        
        //* Add the subfolder to the subscriptions and courierimapsubscribed files