Author |
|
alman Newbie
Joined: 22 February 2022 Location: Germany
Online Status: Offline Posts: 5
|
Posted: 22 February 2022 at 4:48am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6095
|
Posted: 22 February 2022 at 5:49am | IP Logged
|
|
|
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 |
|
|
alman Newbie
Joined: 22 February 2022 Location: Germany
Online Status: Offline Posts: 5
|
Posted: 22 February 2022 at 6:47am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6095
|
Posted: 23 February 2022 at 10:46pm | IP Logged
|
|
|
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 |
|
|
alman Newbie
Joined: 22 February 2022 Location: Germany
Online Status: Offline Posts: 5
|
Posted: 24 February 2022 at 12:28am | IP Logged
|
|
|
Dear Igor,
thank you very much.
It works very fine.
Best regards
Christoph
|
Back to Top |
|
|