Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: Internal Server Error - SORT capability Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
mbalsam
Newbie
Newbie
Avatar

Joined: 11 January 2017
Location: United States
Online Status: Offline
Posts: 1
Posted: 11 January 2017 at 8:25pm | IP Logged Quote mbalsam

Installed pilot of webmail pro. Admin panel works. During login as a user account I small warning messages during login.

Internal Server Error. Please, contact your system administrator in order to report the problem

Server is Imap on Exchange 2010.

I enabled Debugging logs and see this:

[Message]
The IMAP4 server does not support SORT capability required to perform sorted search.
[TargetSite]
MailBee.ImapMail.MessageIndexCollection a(Boolean, System.String, System.String, System.String)
[Stack Trace]
   at kr.a(Boolean A_0, String A_1, String A_2, String A_3)
   at ab.a(Boolean A_0, Boolean A_1, String A_2, String A_3, String A_4)
   at WebMail.ImapStorage.LoadMessageHeaders(String messageIndexSet, Boolean indexAsUid, Folder fld)
[Method]: a
[Line, Column]: [0, 0]

Any Ideas?
Back to Top View mbalsam's Profile Search for other posts by mbalsam
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 4769
Posted: 12 January 2017 at 12:32am | IP Logged Quote Igor

Indeed, WebMail Pro ASP.NET requires mailserver to be able to return mails in sorted order. If that's not the case with particular server you use, you can try modifying App_Code/MailStorageImap.cs file, replacing the line:

Code:
MessageIndexCollection indexColl = _imapObj.SortedSearch(indexAsUid, messageIndexSet, null, "REVERSE ARRIVAL");


with:

Code:
MessageIndexCollection indexColl = _imapObj.Search(indexAsUid, messageIndexSet, null);


Note that while files under App_Code are usually recompiled automatically, you may need to run compile.bat file found in root WebMail directory to apply changes.

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