Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: Display ’To’ for Sent items subfolder Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
theodeg
Newbie
Newbie


Joined: 20 December 2016
Location: Netherlands
Online Status: Offline
Posts: 1
Posted: 20 December 2016 at 8:47am | IP Logged Quote theodeg

Hi there,

Really love AfterLogic WebMail Lite. I'm using it for quite some years now and it is still working like a charm!

Question: i have an archive folder under the 'Sent items' folder. In the Sent items folder the listview perfectly displays the 'To' name or e-mailaddress like it should. But in the subfolder listview it shows the 'From' ('me') in stead of the 'To' name or e-mailaddress. Is there any way i could change that?

Thanks for making available this great software!

Kind regards,

Theo

My Version: 7.6.10   
Back to Top View theodeg's Profile Search for other posts by theodeg
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 20 December 2016 at 11:37pm | IP Logged Quote Igor

Hello Theo,

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

Code:
CMessageModel.prototype.fillFromOrToText = function ()


and replace its code with:

Code:
CMessageModel.prototype.fillFromOrToText = function ()
{
var
  oFolderList = App.MailCache.folderList(),
  oFolder = oFolderList ? oFolderList.getFolderByFullName(this.folder()) : null,
  oSent = oFolderList ? oFolderList.sentFolder() : null,
  oDraft = oFolderList ? oFolderList.draftsFolder() : null,
  oAccount = AppData.Accounts.getAccount(this.accountId())
;

if (oFolder && (oSent && oFolder.fullName().indexOf(oSent.fullName()) !== -1 || oDraft && oFolder.fullName().indexOf(oDraft.fullName()) !== -1))
{
  this.fromOrToText(this.oTo.getDisplay(Utils.i18n('MESSAGE/ME_RECIPIENT'), oAccount.email()));
}
else
{
  this.fromOrToText(this.oFrom.getDisplay(Utils.i18n('MESSAGE/ME_SENDER'), oAccount.email()));
}
};


To apply these changes, disable use of minified app.js file in settings – add the following item to array defined in data/settings/config.php file:

Code:
'labs.use-app-min-js' => false,


Also, we will consider adding this kind of modification into the regular release of the product.

--
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