Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite

 AfterLogic Forum : AfterLogic WebMail Lite
Subject Topic: Changing # of msgs seen in threads Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
OscarMeyer
Newbie
Newbie


Joined: 20 August 2025
Online Status: Offline
Posts: 3
Posted: 20 August 2025 at 8:48am | IP Logged Quote OscarMeyer

I'd like to be able to change the number of messages seen when expanding a thread, or clicking the the 'More messages'. Can anyone provide a pointer where this parameter is located? Thanks!
Back to Top View OscarMeyer's Profile Search for other posts by OscarMeyer
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6161
Posted: 20 August 2025 at 10:44pm | IP Logged Quote Igor

Well at least one of the two can be found in modules/MailWebclient/js/models/CMessageModel.js file:

Code:
CMessageModel.prototype.increaseThreadCountForLoad = function ()
{
     this.threadCountForLoad(this.threadCountForLoad() + 5);
...


Changing value directly in that file, however, would require building static files which is rather complex operation, there's a more straightforward approach available. In static/js directory, locate the file which contains the above code - in 9.8.2 that's 55.app.209cb5a9c6c5eeaf4306.js file.

To make WebMail use non-minified JavaScript files, set "UseAppMinJs" to false in data/settings/config.json file. Also, be sure to clear browser's cache to apply changes.

Hope this helps.

--
Regards,
Igor, Afterlogic
Back to Top View Igor's Profile Search for other posts by Igor
 
OscarMeyer
Newbie
Newbie


Joined: 20 August 2025
Online Status: Offline
Posts: 3
Posted: 21 August 2025 at 11:24am | IP Logged Quote OscarMeyer

Thanks for the quick reply. I will check this after updating. I'm currently on 9.7.8 I think. Not 9.8.2 anyway.

Cheers!
Back to Top View OscarMeyer's Profile Search for other posts by OscarMeyer
 
OscarMeyer
Newbie
Newbie


Joined: 20 August 2025
Online Status: Offline
Posts: 3
Posted: 23 August 2025 at 4:29pm | IP Logged Quote OscarMeyer

On my system with a fresh 9.8.2 install (9.8.2.build3-build-o3), the values are in the files:
29.app.750a502409a1711e236b.js
611.app.e900f70c6bcd002498dc.min.js

Two places needed to be changed in 29:
6252   this.threadCountForLoad = ko.observable(5);
6429   this.threadCountForLoad(this.threadCountForLoad() + 5);

The minimized file needs similar edits - just have to search for the spots. I changed the values to 10, cleared the browser cache, and restarted the web server (lighttpd). Works fine. If I get ambitious, maybe one day I'll change this to be the total thread size.

Thanks for the pointer, helped alot.
Back to Top View OscarMeyer's Profile Search for other posts by OscarMeyer
 

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