Author |
|
alexbromo Newbie
Joined: 14 July 2015 Location: Italy
Online Status: Offline Posts: 25
|
Posted: 14 August 2015 at 1:14am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 14 August 2015 at 2:29am | IP Logged
|
|
|
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 |
|
|
alexbromo Newbie
Joined: 14 July 2015 Location: Italy
Online Status: Offline Posts: 25
|
Posted: 14 August 2015 at 3:38am | IP Logged
|
|
|
The setting you suggested solved the problem.
Thanks Igor !
ALex.
|
Back to Top |
|
|
alexbromo Newbie
Joined: 14 July 2015 Location: Italy
Online Status: Offline Posts: 25
|
Posted: 14 August 2015 at 4:13am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 14 August 2015 at 4:34am | IP Logged
|
|
|
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 |
|
|
alexbromo Newbie
Joined: 14 July 2015 Location: Italy
Online Status: Offline Posts: 25
|
Posted: 14 August 2015 at 7:13am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 14 August 2015 at 7:18am | IP Logged
|
|
|
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 |
|
|
alexbromo Newbie
Joined: 14 July 2015 Location: Italy
Online Status: Offline Posts: 25
|
Posted: 14 August 2015 at 7:40am | IP Logged
|
|
|
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 |
|
|
alexbromo Newbie
Joined: 14 July 2015 Location: Italy
Online Status: Offline Posts: 25
|
Posted: 14 August 2015 at 7:41am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 14 August 2015 at 7:43am | IP Logged
|
|
|
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 |
|
|
alexbromo Newbie
Joined: 14 July 2015 Location: Italy
Online Status: Offline Posts: 25
|
Posted: 14 August 2015 at 7:57am | IP Logged
|
|
|
Ah, ok ...
ALex.
|
Back to Top |
|
|