Nicola Pedrozzi wrote: > Dear all, > since on my system not all the webmail users have a personal local > directory I wanted to set a system wide $default_folder_prefix directory > where all the $username subfolders should go. > > I'm setting up version 1.4.4 and it doesn't seem to be possible, as far > as I see, all the INBOX subfolders are placed in > > $HOME/ . $default_folder_prefix . > > > > I managed to do it myself by modifying one line of code in the file > > > include/load_prefs.php > > the line was: > > $folder_prefix = getPref($data_dir, $username, 'folder_prefix', > $default_folder_prefix); > > > my line is now: > > $folder_prefix = getPref($data_dir, $username, 'folder_prefix', > $system_folder_prefix . $username . $default_folder_prefix); > > > obviously I added the variable $system_folder_prefix in config.php . > > Basically now all the INBOX... files are stored in the same base-dir for > all users (with ugly drwxrwxrwt permissions - security flaw?): > > $system_folder_prefix/$username/$default_folder_prefix > > > > This seems to work flawleesy but I don't like modifying the code because > I'll try in future to reamin in synch with new releases. > > > So, I'm asking developers (hope to have choosen the right mailing list) > if it would be possible to add such a "feature". >
Probably not. SquirrelMail talks to imap and doesn't care where the mailboxes are located. So if we select the INBOX (which is a special folder) then your imap server knows where it's located. Probably you are using UW where the folder prefix is used to define the location of the other folders then inbox. What we can consider (we do that anyway but the question is when) to add to SquirrelMail is something else and it's called NAMESPACE support. The imap namespace tells us what the personal namespace, other users namespace and the shared namespace is. A namespace contains the folder prefixes to the namespace. Regards, Marc Groot Koerkamp. ------------------------------------------------------- This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728 -- squirrelmail-users mailing list Posting Guidelines: http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines List Address: [email protected] List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
