Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: How to remove [2] in subject line? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
niniane
Newbie
Newbie
Avatar

Joined: 12 May 2015
Location: Canada
Online Status: Offline
Posts: 2
Posted: 12 May 2015 at 6:19am | IP Logged Quote niniane

Hi,

I noticed that replies have threading in the subject line, and they show up as "RE[2]: subject line here".

I would like to remove [n] from the subject line so replies look like "RE: subject here" without the numbering, but I only found really old posts in this forum that aren't relevant any more.

I've been editing it out when replying to an email, but that's not ideal. I'm hoping to edit some code so I don't have to continue doing this any more.

Does someone here know how to remove the numbering from the subject line with the current version of Webmail PHP Pro?

Thanks for reading!
Back to Top View niniane's Profile Search for other posts by niniane
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 12 May 2015 at 6:46am | IP Logged Quote Igor

In static/js/app.js file, locate the following code:

Code:
CMessageSender.prototype.subjectCompiler = function (sSubject, bRe)
{
     sSubject = Utils.trim(sSubject.replace(/[\s]+/g, ' '));

     var
          bAddCounts = true,
...


Setting bAddCounts to false will have the effect you're looking for.

Note that this 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,


Also, be sure to clear browser cache to apply changes.

Hope this helps!

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
niniane
Newbie
Newbie
Avatar

Joined: 12 May 2015
Location: Canada
Online Status: Offline
Posts: 2
Posted: 12 May 2015 at 1:59pm | IP Logged Quote niniane

Thank you for your speedy reply and help -- it worked like a charm!

Thanks again!
Back to Top View niniane's Profile Search for other posts by niniane
 

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