Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite

 AfterLogic Forum : AfterLogic WebMail Lite
Subject Topic: manipulate subject Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
alman
Newbie
Newbie


Joined: 22 February 2022
Location: Germany
Online Status: Offline
Posts: 5
Posted: 22 February 2022 at 4:48am | IP Logged Quote alman

Hi,
how can i manipulate the subject line?
I want to highlight via regular expression and a span-tag a string like [test].
In which file can i do this?
best regards
Christoph
Back to Top View alman's Profile Search for other posts by alman
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6103
Posted: 22 February 2022 at 5:49am | IP Logged Quote Igor

Sorry, not too sure what kind of highlight and where you require that to be done. Anyhow, while we do allow the source code modification, that's not something covered by free support, even for our commercial products.

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


Joined: 22 February 2022
Location: Germany
Online Status: Offline
Posts: 5
Posted: 22 February 2022 at 6:47am | IP Logged Quote alman

Please see the screenshot:
https://www.dropbox.com/s/pnbvixwjdtq1u69/Unbenannt.PNG?dl=0

In the e-mail list I want to manipulate the subject text.
AW: zfo 2/2022 <span style="background-color: #FFFF00">[AK6]</span> #1108#

I use version 9.3.0.build7-build-a3

Best regards
Christoph
Back to Top View alman's Profile Search for other posts by alman
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6103
Posted: 23 February 2022 at 10:46pm | IP Logged Quote Igor

The simplest solution is to edit modules/MailWebclient/templates/MessageItemView.html file and replace the following code:

Code:
<span data-bind="text: subjectForDisplay()"></span>


with:

Code:
<span data-bind="html: subjectForDisplay().replace('AK6', '<span style=\'background-color: #FFFF00\'>[AK6]</span>')"></span>


To apply changes in the templates, clear data/cache/ directory content; alternately, set "CacheCtrl" and "CacheTemplates" to false in data/settings/config.json file.

NB: source code customization guidelines are not part of standard support scope and are provided on AS IS basis.

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


Joined: 22 February 2022
Location: Germany
Online Status: Offline
Posts: 5
Posted: 24 February 2022 at 12:28am | IP Logged Quote alman

Dear Igor,
thank you very much.
It works very fine.
Best regards
Christoph
Back to Top View alman's Profile Search for other posts by alman
 

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