Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: Random message listing order Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
alexbromo
Newbie
Newbie


Joined: 14 July 2015
Location: Italy
Online Status: Offline
Posts: 25
Posted: 14 August 2015 at 1:14am | IP Logged Quote alexbromo

Hi,

In our installation message listing order is confused (see pic):



In SETTINGS.XML we have:

<UseSortImapForDateMode>On</UseSortImapForDateMode>

Are there some other settings to care ?

ALex.
Back to Top View alexbromo's Profile Search for other posts by alexbromo
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 14 August 2015 at 2:29am | IP Logged Quote Igor

There is a setting which might be helpful here. By default, WebMail shows the date information as it's reported by IMAP server. If you'd like to have it obtained from message headers, add the following item to array defined in data/settings/config.php file:

Code:
'labs.use-date-from-headers' => true,


See more on message sorting at:

Emails are not sorted correctly

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


Joined: 14 July 2015
Location: Italy
Online Status: Offline
Posts: 25
Posted: 14 August 2015 at 3:38am | IP Logged Quote alexbromo

The setting you suggested solved the problem.
Thanks Igor !

ALex.
Back to Top View alexbromo's Profile Search for other posts by alexbromo
 
alexbromo
Newbie
Newbie


Joined: 14 July 2015
Location: Italy
Online Status: Offline
Posts: 25
Posted: 14 August 2015 at 4:13am | IP Logged Quote alexbromo

No sorry, i was wrong: the problem persist ...



below my actual CONFIG.PHP:

-----------------------

<?php

$aSieveDomains = array('imap.domain1.com', 'imap.domain2.com');

return array(
     
     'sieve' => false,
     'sieve.autoresponder' => true,
     'sieve.forward' => true,
     'sieve.filters' => true,
     'sieve.config.host' => '',
     'sieve.config.port' => 2000,
     'sieve.config.filters-folder-charset' => 'utf-8', // [utf7-imap, utf-8>
     'sieve.config.domains' => $aSieveDomains,
       
     'labs.use-date-from-headers' => true,
       
     'links.importing-contacts' => 'http://www.afterlogic.com/wiki/Importing_contacts_(WebMail_Lite)'
     
);

-----------------------

ALex.
Back to Top View alexbromo's Profile Search for other posts by alexbromo
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 14 August 2015 at 4:34am | IP Logged Quote Igor

Unfortunately, it's not like anything can be done about it from WebMail end. WebMail requests list of messages sorted by date, and it's up to mail server to return those listed in correct order - and apparently, this is what mail server isn't doing right in this particular case.

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


Joined: 14 July 2015
Location: Italy
Online Status: Offline
Posts: 25
Posted: 14 August 2015 at 7:13am | IP Logged Quote alexbromo

I see.

In our old (commercial) Mailbee client, we can sort messages by date (or size, from and so on ...) clicking on column header so users have no problems with this issue.

ALex.
Back to Top View alexbromo's Profile Search for other posts by alexbromo
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 14 August 2015 at 7:18am | IP Logged Quote Igor

Interesting. Actually, if you have UseSortImapForDateMode set to On, this forces sorting mails by date.

I wonder if you have Message threading enabled for the account - and if you disable the threading, does it help with the sorting? The two features conflict in terms of message ordering so you might need to disable threading.

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


Joined: 14 July 2015
Location: Italy
Online Status: Offline
Posts: 25
Posted: 14 August 2015 at 7:40am | IP Logged Quote alexbromo

I verified that threading is disabled.

I noticed that the e-mails are listed in the same order they are stored in the mail server's user folder so i guess you are right: it is a server issue.

Anyhow i tested some free services available on the web (like http://myemail.com/ for example) and they lists the content of IMAP4 folder in the right datetime order, so they clarly uses a post-download sorting strategy to prevent these problems.

Perhaps using an appropriate SQL command (like "... ORDER BY ...") to populate display grid could solve, does not know ...

ALex.
Back to Top View alexbromo's Profile Search for other posts by alexbromo
 
alexbromo
Newbie
Newbie


Joined: 14 July 2015
Location: Italy
Online Status: Offline
Posts: 25
Posted: 14 August 2015 at 7:41am | IP Logged Quote alexbromo

alexbromo wrote:
I verified that threading is disabled.

Investigating on our mail server folders, i noticed that the e-mails are listed in the same order they are stored in the mail server's user folder so i guess you are right: it is a server issue.

Anyhow i tested some free services available on the web (like http://myemail.com/ for example) and they lists the content of IMAP4 folder in the right datetime order, so they clarly uses a post-download sorting strategy to prevent these problems.

Perhaps using an appropriate SQL command (like "... ORDER BY ...") to populate display grid could solve, does not know ...

ALex.
Back to Top View alexbromo's Profile Search for other posts by alexbromo
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 14 August 2015 at 7:43am | IP Logged Quote Igor

Well we're not using database backend for email operations, only direct IMAP commands, for performance reasons. So we have to rely on IMAP server returning results properly.

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


Joined: 14 July 2015
Location: Italy
Online Status: Offline
Posts: 25
Posted: 14 August 2015 at 7:57am | IP Logged Quote alexbromo

Ah, ok ...


ALex.
Back to Top View alexbromo's Profile Search for other posts by alexbromo
 

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