Author |
|
Olaf Newbie
Joined: 24 August 2015 Location: Netherlands
Online Status: Offline Posts: 2
|
Posted: 24 August 2015 at 5:12am | IP Logged
|
|
|
Hello,
Because we have like thousands and thousands of subfolders I would like to disable the folder list all together.
Is there a setting to do this or plugin or do I have to dive into the source, and if so what is the best way to do this?
Regards,
Olaf
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 24 August 2015 at 5:47am | IP Logged
|
|
|
While the behavior is not configurable and there's no ready-to-use plugins for this purpose, I would suggest an approach which might help.
In static/js/app.js file, locate the following function:
Code:
CFolderListModel.prototype.parseRecursively = function (aRowCollection, oNamedFolderListOld, iLevel, sParentFullName) |
|
|
and find the following code there:
Code:
else if (oSubFolders !== null) |
|
|
That code is responsible for displaying a list of subfolders recursively so I'd suggest to start from there.
Note that app.js file isn't used by default - its minified version app.min.js is used. To change that, add the following item to the array defined in data/settings/config.php file:
Code:
'labs.use-app-min-js' => false, |
|
|
If you might be interested in getting assistance from the developers on making modifications in the code, that can be arranged in terms of Professional Services.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
Olaf Newbie
Joined: 24 August 2015 Location: Netherlands
Online Status: Offline Posts: 2
|
Posted: 24 August 2015 at 6:49am | IP Logged
|
|
|
Hey Igor,
Commenting out that peace of code seems to help a little.
We notice though that the application becomes very unstable and crashes a lot (time outs) when having more then 1500 subfolders, is this normal? We are planning to have folders with like 20000 subfolders in the future.
Is there any more code we can disable or are there settings (or a set of settings) to make the application faster and workable when having this much subfolders?
Regards,
Olaf
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 24 August 2015 at 6:58am | IP Logged
|
|
|
At the moment, it's not like we really have an answer there, I'm afraid. It's a known problem with accessing a large number of folders, and since it's a web application which accesses the folders directly on mail server, without maintaining a local cache of any kind, there's no perfect solution for that.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|