Jim Pingle wrote:
Checking the code of Squirrelmail shows that if you have the personal option "Sort by Received Date" set to yes, it sends ARRIVAL to the server as the sort choice, whereas if you have it set to no, it sends DATE. When I was testing, the option was set to Yes; When I changed it to No, it sorted as expected.
That makes sense, since the Date header lines I posted initially were correct, just not in the correct order.
There appears to be support for a similar option in the code for roundcube (in imap.inc), but I see no method for a user/admin to set it. In rcube_imap.inc it's explicitly set off, but at the start of imap.inc it is set on. It tests to see if IMAP_USE_HEADER_DATE is false which it always will be as I can't find any other reference to the variable it's testing for anywhere in the code.
As an experiment you could try commenting out line 57 in program/lib/imap.inc: if (!$IMAP_USE_HEADER_DATE) $IMAP_USE_INTERNAL_DATE = true;
That sounds very promising, I'm gonna try that.
mtu