Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: Functionally disable the folder list Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Olaf
Newbie
Newbie
Avatar

Joined: 24 August 2015
Location: Netherlands
Online Status: Offline
Posts: 2
Posted: 24 August 2015 at 5:12am | IP Logged Quote Olaf

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 View Olaf's Profile Search for other posts by Olaf
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 24 August 2015 at 5:47am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 
Olaf
Newbie
Newbie
Avatar

Joined: 24 August 2015
Location: Netherlands
Online Status: Offline
Posts: 2
Posted: 24 August 2015 at 6:49am | IP Logged Quote Olaf

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 View Olaf's Profile Search for other posts by Olaf
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 24 August 2015 at 6:58am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide