Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: Rename the standard imap folders created Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
alpha_one
Newbie
Newbie


Joined: 23 March 2011
Location: Sweden
Online Status: Offline
Posts: 6
Posted: 29 September 2011 at 4:06am | IP Logged Quote alpha_one

Hello,

Is it possible to change the standard folder name that AfterLogic Webmail creates?
(Sent, drafts and so on)

I know its possible to edit these in the webmail but I would like a standard setup that makes these on the imap-server in Swedish instead..

Thank you!

Back to Top View alpha_one's Profile Search for other posts by alpha_one
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 29 September 2011 at 12:45pm | IP Logged Quote Igor

Check common/class_folders.php files, you'll find GetFolderName function there, it provides matching default name for particular folder type. Constants which define supported folder names are listed at the beginning of the same file. Please note that the same names are used when searching for folders on setting up the account, and if folder of particular type isn't found it will be created. Also, it's important to understand we're speaking of IMAP folder names here, while names of folder types displayed in webmail interface are defined in translation file, lang/Swedish.php in your case.

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


Joined: 23 March 2011
Location: Sweden
Online Status: Offline
Posts: 6
Posted: 03 October 2011 at 12:57pm | IP Logged Quote alpha_one

Correct, I want to change the default folder names created by the alw, so the class_folders.php is the right place..

I have tried different scenarios but not got an 100% working solution.

For example, if I would like to change "Trash" to "Borttaget", which all lines should I edit?


Line 37: define('FOLDERNAME_Trash', 'Trash');

Line 161: case strtolower(FOLDERNAME_Trash):
Line 161: $this->Type = FOLDERTYPE_Trash;

Line 208: case FOLDERTYPE_Trash:
Line 209: $foldername = FolderTrash;

Line 579: $this->_localSortFunction(FOLDERNAME_Trash, $newFoldersArray, $newFolders);
Back to Top View alpha_one's Profile Search for other posts by alpha_one
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 04 October 2011 at 12:16am | IP Logged Quote Igor

Code:
Line 37: define('FOLDERNAME_Trash', 'Trash');


This line defines a value for FOLDERNAME_Trash constant, which is "Trash" by default, and this is where it should be replaced I think. All the other lines would use the constant name itself and not its value.

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