| Author |  | 
      
        | mbalsam Newbie
 
  
  
 Joined: 11 January 2017
 Location: United States
 Online Status: Offline
 Posts: 1
 | 
          Installed pilot of webmail pro.  Admin panel works. During login as a user account I small warning messages during login.
           | Posted: 11 January 2017 at 8:25pm | IP Logged |   |  
           | 
 |  
 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 |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          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:
           | Posted: 12 January 2017 at 12:32am | IP Logged |   |  
           | 
 |  
 
 
| 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 |     | 
       
       
        |  |