Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: Creating IMAP-Folders with special-chars Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
basstscho
Newbie
Newbie


Joined: 16 November 2017
Online Status: Offline
Posts: 2
Posted: 16 November 2017 at 11:11am | IP Logged Quote basstscho

Dear all,

I'm running one installation with a hmailserver and Outlook 2013 as an IMAP-Client. Now i want to add webmail access to the accounts.
I tested some webmail-clients and ended up finaly at your WebMail Lite. The slim layout with all the neeed features is awesome!

The Installation is in german. Unfortunately, Outlook creates the default-IMAP-folders in german. For example: "Gelöschte Objekte" for Trash. So I had to install the plugin "Change-Default-Folders" and webmail started to detect the Outlook-Made Folders - perfect!

There is only one problem: When connecting to a freshly made mailbox by webmail (before Outlook) it creates not readable folders (the ones with the special-characters ö & ü - Trash & Drafts). The Sent-Folder and Junk-Folder is created perfectly.

While looking in hmail-Account the folders are created, but they show no name. Outlook creates them once more (in this case also readable from hmail) after the first login.

Code:

$aFolderMap = array(
               EFolderType::Inbox => 'INBOX',
               EFolderType::Trash => array ("Gelöschte Elemente",'Trash'),
               EFolderType::Sent => array ('Gesendete Elemente','Sent'),
               EFolderType::Drafts => array ('Entwürfe','Drafts'),
               EFolderType::Spam => array ('Junk-E-Mail','Spam','Junk')
          );


So it looks like, that there is somewhere in your code for creating the folders an issue with special-charcters. I don't think that it comes from the file-format of the configuration-file (above), because reading runs perfectly.

Do you have an idea how to fix that?

Thank you and best regards,
Johannes
Back to Top View basstscho's Profile Search for other posts by basstscho
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 17 November 2017 at 3:01am | IP Logged Quote Igor

Hello,

I'll check with the developers and see if anything can be done about it.

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


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 17 November 2017 at 4:25am | IP Logged Quote Igor

In libraries/afterlogic/common/managers/mail/manager.php file, replace line ~318:

Code:
$this->createFolderByFullName($oAccount, $sFolderFullName);


with:

Code:
     $sNameToCreate = \MailSo\Base\Utils::ConvertEncoding($sFolderFullName,
      \MailSo\Base\Enumerations\Charset::UTF_8,
      \MailSo\Base\Enumerations\Charset::UTF_7_IMAP);
     $this->createFolderByFullName($oAccount, $sNameToCreate);


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


Joined: 16 November 2017
Online Status: Offline
Posts: 2
Posted: 17 November 2017 at 11:44am | IP Logged Quote basstscho

Hello Igor,

thank you for this quick respond. The Code works great!

Best regards,
Johannes
Back to Top View basstscho's Profile Search for other posts by basstscho
 

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