Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: Imported mail from IMAP not sorted proper Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
rockman
Newbie
Newbie


Joined: 07 December 2013
Online Status: Offline
Posts: 6
Posted: 07 December 2013 at 4:14pm | IP Logged Quote rockman

Hello - I have moved mail from an old account into a new account via IMAP. When using WebMail Lite to access the new account, the emails are sorted by oldest first, rather than newest first. Is there a configuration I am missing? Thx!
Back to Top View rockman's Profile Search for other posts by rockman
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6043
Posted: 08 December 2013 at 9:03pm | IP Logged Quote Igor

For performance reasons, WebMail doesn't perform sorting messages on date when displaying message list, they're listed in natural order which works fine in most cases. But if you move messages from another folder or import mails from another account, the order might not be correct. To work around that, set UseSortImapForDateMode to On in data/settings/settings.xml file. While it might slow things down a bit, the messages order should be entirely correct.

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


Joined: 07 December 2013
Online Status: Offline
Posts: 6
Posted: 08 December 2013 at 11:00pm | IP Logged Quote rockman

The issue persists with either "on" or "off" for UseSortImapForDateMode.

New incoming mail is sorted properly, just not the mails moved from a different IMAP account.

I've not had any issues with Horde, RoundCube, or SquirrelMail. I actually prefer WebMail Lite. A dark theme would be very nice. ;)

FWIW, my VERSION file is 7.1.1.1.

Cheers
Back to Top View rockman's Profile Search for other posts by rockman
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6043
Posted: 09 December 2013 at 1:29am | IP Logged Quote Igor

The setting triggers sorting on IMAP server level, and if that doesn't help, little can be done about it on WebMail end. There's a chance we can make things work as expected, though. In data/settings/config.php file, add the following item to the array defined there:

Code:
return array(
     ...
     'labs.use-date-from-headers' => true
);


This will not change the sorting order, but message dates will be retrieved from message headers directly, instead of those reported by IMAP server. In your particular case, I believe that might help, as it might be that the sorting is already done correctly, but displaying the dates isn't.

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


Joined: 07 December 2013
Online Status: Offline
Posts: 6
Posted: 09 December 2013 at 8:01am | IP Logged Quote rockman

Igor - Thank you so much for your help. Unfortunately, neither of those settings has resolved the sorting issue. :(
Back to Top View rockman's Profile Search for other posts by rockman
 
rockman
Newbie
Newbie


Joined: 07 December 2013
Online Status: Offline
Posts: 6
Posted: 09 December 2013 at 10:34am | IP Logged Quote rockman

I've set UseSortImapForDateMode to Off in data/settings/settings.xml file and removed 'labs.use-date-from-headers' => true from data/settings/config.php. I didn't see any chance in behavior with those settings enabled.

The server is returning the correct INTERNALDATE, but WebMail is not sorting on this date. Instead, it appears to be sorting on another date, such as modified? However, I do not see this information and I am unsure how to get a dump of a mail object to see all of the properties.

Here's a log capture...

Code:

[18:18:51.64] IMAP[NOTE]: Start connection to "ssl://secure39.webhostinghub.com:993"
[18:18:51.73] IMAP[DATA]: < * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE AUTH=PLAIN ACL ACL2=UNION] Courier-IMAP ready. Copyright 1998-2011 Double Precision, Inc.  See COPYING for distribution information.\r\n
[18:18:51.73] IMAP[SECURE]: > TAG1 LOGIN "xxxxxxxxxxxxxx" "*******"\r\n
[18:18:51.74] IMAP[DATA]: < TAG1 OK LOGIN Ok.\r\n
[18:18:51.74] IMAP[DATA]: > TAG2 EXAMINE "INBOX"\r\n
[18:18:51.74] IMAP[DATA]: < * FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent)\r\n
[18:18:51.74] IMAP[DATA]: < * OK [PERMANENTFLAGS ()] No permanent flags permitted\r\n
[18:18:51.74] IMAP[DATA]: < * 14 EXISTS\r\n
[18:18:51.74] IMAP[DATA]: < * 1 RECENT\r\n
[18:18:51.74] IMAP[DATA]: < * OK [UIDVALIDITY 386434919] Ok\r\n
[18:18:51.74] IMAP[DATA]: < * OK [MYRIGHTS "acdilrsw"] ACL\r\n
[18:18:51.74] IMAP[DATA]: < TAG2 OK [READ-ONLY] Ok\r\n
[18:18:51.74] IMAP[DATA]: > TAG3 STATUS "INBOX" (MESSAGES UNSEEN UIDNEXT)\r\n
[18:18:51.74] IMAP[DATA]: < * STATUS "INBOX" (MESSAGES 14 UIDNEXT 107 UNSEEN 1)\r\n
[18:18:51.74] IMAP[DATA]: < TAG3 OK STATUS Completed.\r\n
[18:18:51.74] IMAP[DATA]: > TAG4 CAPABILITY\r\n
[18:18:51.74] IMAP[DATA]: < * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE AUTH=PLAIN ACL ACL2=UNION\r\n
[18:18:51.74] IMAP[DATA]: < TAG4 OK CAPABILITY completed\r\n
[18:18:51.74] IMAP[DATA]: > TAG5 UID THREAD REFERENCES UTF-8 ALL\r\n
[18:18:51.75] IMAP[DATA]: < * THREAD (54)((44)(42))(39)(35)((31)(29)(28))(30)(26)(25)(9)(101)(106)\r\n
[18:18:51.75] IMAP[DATA]: < TAG5 OK THREAD done.\r\n
[18:18:51.75] IMAP[DATA]: > TAG6 UID FETCH 106,101,54,44,39,35,31,30,26,25,9 (UID RFC822.SIZE INTERNALDATE FLAGS BODYSTRUCTURE BODY.PEEK[HEADER])\r\n
[18:18:51.75] IMAP[DATA]: < * 14 FETCH (UID 106 RFC822.SIZE 14164 INTERNALDATE "09-Dec-2013 10:17:36 -0800" FLAGS (\Recent) BODYSTRUCTURE (("text" "plain" ("charset" "iso-8859-1") NIL NIL "8bit" 1655 43 NIL NIL NIL)("text" "html" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 2956 59 NIL NIL NIL) "alternative" ("boundary" "047d7bea3f4c9a937704ed1e014b") NIL NIL) BODY[HEADER] {9311}\r\n
[18:18:51.75] IMAP[DATA]: < )\r\n
[18:18:51.75] IMAP[DATA]: < * 13 FETCH (UID 101 RFC822.SIZE 18556 INTERNALDATE "09-Dec-2013 01:29:12 -0800" FLAGS (\Seen) BODYSTRUCTURE ((("text" "plain" ("charset" "utf-8") NIL NIL "quoted-printable" 1402 35 NIL NIL NIL)("text" "html" ("charset" "utf-8") NIL NIL "quoted-printable" 3909 67 NIL NIL NIL) "alternative" ("boundary" "----=_NextPart_002_100C_5AAC195F.007F24AA") NIL NIL)("image" "png" ("name" "logo-facebook.png") "<7158336699-1>" NIL "base64" 5208 NIL NIL NIL)("image" "png" ("name" "logo-twitter.png") "<3581684536-2>" NIL "base64" 4124 NIL NIL NIL) "related" ("type" "multipart/alternative" "boundary" "----=_NextPart_001_100C_5AAC195F.007F24AA") NIL NIL) BODY[HEADER] {3077}\r\n
[18:18:51.76] IMAP[DATA]: < )\r\n
[18:18:51.76] IMAP[DATA]: < * 12 FETCH (UID 54 RFC822.SIZE 5834 INTERNALDATE "06-Nov-2013 12:16:27 -0800" FLAGS (\Flagged \Seen) BODYSTRUCTURE (("text" "plain" ("charset" "iso-8859-1" "format" "flowed") NIL NIL "7bit" 1164 31 NIL NIL NIL)("text" "html" ("charset" "iso-8859-1") NIL NIL "7bit" 2101 49 NIL NIL NIL) "alternative" ("boundary" "------------080607090907020707050007") NIL NIL) BODY[HEADER] {2263}\r\n
[18:18:51.76] IMAP[DATA]: < )\r\n
[18:18:51.76] IMAP[DATA]: < * 11 FETCH (UID 44 RFC822.SIZE 17326 INTERNALDATE "26-Nov-2013 14:10:48 -0800" FLAGS (\Seen) BODYSTRUCTURE (("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 5430 157 NIL NIL NIL)("text" "html" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 9415 135 NIL NIL NIL) "alternative" ("boundary" "_eda2f5f2-9454-4fc4-a781-5333960033d4_") NIL NIL) BODY[HEADER] {2156}\r\n
[18:18:51.76] IMAP[DATA]: < )\r\n
[18:18:51.76] IMAP[DATA]: < * 9 FETCH (UID 39 RFC822.SIZE 20486 INTERNALDATE "01-Dec-2013 19:31:40 -0800" FLAGS (\Flagged \Seen) BODYSTRUCTURE (("text" "plain" ("charset" "utf-8") "<529bff1b1c9b9_1374106006c61043@232281lpapp001.mail>" NIL "7bit" 957 30 NIL NIL NIL)("text" "html" ("charset" "utf-8") "<529bff1b20241_1374106006c612ae@232281lpapp001.mail>" NIL "7bit" 17207 149 NIL NIL NIL) "alternative" ("boundary" "--==_mimepart_529bff1ad4201_1374106006c6094d" "charset" "utf-8") NIL NIL) BODY[HEADER] {1744}\r\n
[18:18:51.76] IMAP[DATA]: < )\r\n
[18:18:51.76] IMAP[DATA]: < * 8 FETCH (UID 35 RFC822.SIZE 21708 INTERNALDATE "02-Dec-2013 17:37:26 -0800" FLAGS (\Seen) BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL "quoted-printable" 1889 44 NIL NIL NIL)("text" "html" ("charset" "us-ascii") NIL NIL "quoted-printable" 14956 398 NIL NIL NIL) "alternative" ("boundary" "_000_E2F32B7594627B4A950CC614E0C2899D2E69D2A3imailsnoqualmie_") NIL "en-US") BODY[HEADER] {4473}\r\n
[18:18:51.76] IMAP[DATA]: < )\r\n
[18:18:51.76] IMAP[DATA]: < * 7 FETCH (UID 31 RFC822.SIZE 8931 INTERNALDATE "04-Dec-2013 12:12:16 -0800" FLAGS (\Seen) BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL "quoted-printable" 482 16 NIL NIL NIL)("text" "html" ("charset" "us-ascii") NIL NIL "quoted-printable" 4857 131 NIL NIL NIL) "alternative" ("boundary" "_000_9db130f30a664d2d83cc36e47bf83b97BLUPR03MB066namprd03pro_") NIL "en-US") BODY[HEADER] {3202}\r\n
[18:18:51.76] IMAP[DATA]: < )\r\n
[18:18:51.76] IMAP[DATA]: < * 6 FETCH (UID 30 RFC822.SIZE 53174 INTERNALDATE "04-Dec-2013 13:53:20 -0800" FLAGS (\Seen) BODYSTRUCTURE (("text" "plain" ("charset" "iso-8859-1") NIL NIL "7bit" 9604 240 NIL NIL NIL)("text" "html" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 40730 718 NIL NIL NIL) "alternative" ("boundary" "----=_Part_42682986_923904510.1386194000300") NIL NIL) BODY[HEADER] {2516}\r\n
[18:18:51.76] IMAP[DATA]: < )\r\n
[18:18:51.76] IMAP[DATA]: < * 3 FETCH (UID 26 RFC822.SIZE 8771 INTERNALDATE "05-Dec-2013 17:23:23 -0800" FLAGS (\Seen) BODYSTRUCTURE (("text" "plain" ("charset" "us-ascii") NIL NIL "quoted-printable" 981 20 NIL NIL NIL)("text" "html" ("charset" "us-ascii") NIL NIL "quoted-printable" 2937 73 NIL NIL NIL) "alternative" ("boundary" "_000_E2F32B7594627B4A950CC614E0C2899D2E69E101imailsnoqualmie_") NIL "en-US") BODY[HEADER] {4463}\r\n
[18:18:51.76] IMAP[DATA]: < )\r\n
[18:18:51.76] IMAP[DATA]: < * 2 FETCH (UID 25 RFC822.SIZE 23295 INTERNALDATE "06-Dec-2013 12:06:04 -0800" FLAGS (\Seen) BODYSTRUCTURE (("text" "plain" ("charset" "iso-8859-1") NIL NIL "8bit" 6555 153 NIL NIL NIL)("text" "html" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 11712 214 NIL NIL NIL) "alternative" ("boundary" "----=_Part_440_5127267.1386360355565") NIL NIL) BODY[HEADER] {4758}\r\n
[18:18:51.79] IMAP[DATA]: < )\r\n
[18:18:51.80] IMAP[DATA]: < * 1 FETCH (UID 9 RFC822.SIZE 583081 INTERNALDATE "07-Dec-2013 10:15:43 -0800" FLAGS (\Answered \Seen) BODYSTRUCTURE ((("text" "plain" ("charset" "windows-1256") NIL NIL "quoted-printable" 6716 196 NIL NIL NIL)("text" "html" ("charset" "windows-1256") NIL NIL "quoted-printable" 22034 585 NIL NIL NIL) "alternative" ("boundary" "_000_6ceb8ea23d7540d484c7b52c329563a7DFMDB3MBX1504exchangeco_") NIL NIL)("image" "jpeg" ("name" "WP_20131207_001.jpg") NIL "WP_20131207_001.jpg" "base64" 544958 NIL ("attachment" ("filename" "WP_20131207_001.jpg" "size" "398238" "creation-date" "Sat, 07 Dec 2013 18:14:50 GMT" "modification-date" "Sat, 07 Dec 2013 18:14:50 GMT")) NIL) "mixed" ("boundary" "_004_6ceb8ea23d7540d484c7b52c329563a7DFMDB3MBX1504exchangeco_") NIL "en-US") BODY[HEADER] {8350}\r\n
[18:18:51.80] IMAP[DATA]: < )\r\n
[18:18:51.80] IMAP[DATA]: < TAG6 OK FETCH completed.\r\n
[18:18:51.88] DB : disconnect from xxxxxxxxx@localhost
[18:18:51.88] INFO[MEMORY]: Memory peak usage: 16.25MB
[18:18:51.88] IMAP[DATA]: > TAG7 LOGOUT\r\n
[18:18:51.88] IMAP[DATA]: < * BYE Courier-IMAP server shutting down\r\n
[18:18:51.88] IMAP[DATA]: < TAG7 OK LOGOUT completed\r\n
[18:18:51.88] IMAP[NOTE]: Disconnected from "ssl://secure39.webhostinghub.com:993" (success)
Back to Top View rockman's Profile Search for other posts by rockman
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6043
Posted: 09 December 2013 at 11:30pm | IP Logged Quote Igor

Actually, WebMail isn't sorting anything, as it doesn't maintain local copy of message list anywhere. Instead, it sends a request to IMAP server and the messages should be returned from server in the order sorted by date. If that doesn't work, there's nothing we can do here, unfortunately.

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


Joined: 07 December 2013
Online Status: Offline
Posts: 6
Posted: 10 December 2013 at 9:10am | IP Logged Quote rockman

I understand. How can I have WebMail Lite sort folder headers on the client side? If you can give me some hints on where in WebMail code I could start tweaking myself, that would be helpful. :)

I've also pinged my hosting support team regarding the IMAP behavior.

Cheers
Back to Top View rockman's Profile Search for other posts by rockman
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6043
Posted: 10 December 2013 at 11:43pm | IP Logged Quote Igor

Quote:
How can I have WebMail Lite sort folder headers on the client side?


I don't think that's something one can easily implement, particularly since WebMail fetches only one page of mail list at a time, while you would need to sort the entire list rather than its specific page.

We believe the main reason behind all this is that mails were imported from a different account. In fact, we've never seen a situation of importing mails from another account or system with dates kept in proper order.

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


Joined: 07 December 2013
Online Status: Offline
Posts: 6
Posted: 11 December 2013 at 8:52am | IP Logged Quote rockman

I've decided to archive mail offline using MailStore Home http://www.mailstore.com/en/mailstore-home.aspx and start with a fresh, empty inbox. Thanks again for your time and help.

Cheers
Back to Top View rockman's Profile Search for other posts by rockman
 

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