GNU bug report logs - #37655
27.0.50; reversing `gnus-thread-sort-by-most-recent-date' does not work properly

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Hong Xu <hong@HIDDEN>; dated Tue, 8 Oct 2019 05:03:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 37655 <at> debbugs.gnu.org:


Received: (at 37655) by debbugs.gnu.org; 9 Oct 2019 22:51:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 09 18:51:49 2019
Received: from localhost ([127.0.0.1]:54406 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iIKo9-0000az-2m
	for submit <at> debbugs.gnu.org; Wed, 09 Oct 2019 18:51:49 -0400
Received: from sender4-of-o54.zoho.com ([136.143.188.54]:21497)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <hong@HIDDEN>) id 1iIKo7-0000ap-88
 for 37655 <at> debbugs.gnu.org; Wed, 09 Oct 2019 18:51:48 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1570661502; cv=none; d=zoho.com; s=zohoarc; 
 b=PWCxH+O0xy4x8wU5cergz4Gc+A74vIQnOCvoOcJsGzH2UKms3ObZY1IFvq/uE/2DipvADotxo7N4yDbmsjzH/Fozpq0f/dElw+I6sMwA2NvG7IHTKFMBpqDRPZKcN4leAnTV+Up8a1jGh46zCoJEwmwUfvdelZ+6O72bXfVLtWE=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com;
 s=zohoarc; t=1570661502;
 h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To;
 bh=9Pfi0yYb3Tg6ZcCvwY+zpsux6f2y2pP1FvXxPzjpBVA=; 
 b=OqaDIfl8jED3EigsNq0CKZuFseCDb2M0eDZI+vlTZK4xPUcE6+AeCMEjFnAQhnDG1aSyw27yzLVxNQlOLoXSZPDAA58fnWmmNuXup/RXdIwTRjLT0XOQ2vzw8x1viYzGObWrmo0pAVJxTJZVmSD12lWNs2LqKf3KlYgXqcqIjrA=
ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass  header.i=topbug.net;
 spf=pass  smtp.mailfrom=hong@HIDDEN;
 dmarc=pass header.from=<hong@HIDDEN> header.from=<hong@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1570661502; 
 s=zoho; d=topbug.net; i=hong@HIDDEN;
 h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding;
 l=835; bh=9Pfi0yYb3Tg6ZcCvwY+zpsux6f2y2pP1FvXxPzjpBVA=;
 b=BuLy2VfFHkuZRtmAfeYONciJQOkqzcgC2H2THyswtWdPgPIdl9Sh3QUWSGn+6gue
 vDz+lwdV3O2NtK5iXoqvuDn0zmg1vTBkTACOB5c2ngNiyGjACjQXpIVJM9/HbzF3ph9
 5F5yygmnYQVxJD46elxD4J4Q0QSFPPVrOYF19e3k=
Received: from [192.168.88.88] (69-215-149-151.lightspeed.sntcca.sbcglobal.net
 [69.215.149.151]) by mx.zohomail.com
 with SMTPS id 1570661500220951.4168305318632;
 Wed, 9 Oct 2019 15:51:40 -0700 (PDT)
Subject: Re: bug#37655: 27.0.50; reversing
 `gnus-thread-sort-by-most-recent-date' does not work properly
To: Eric Abrahamsen <eric@HIDDEN>
References: <7ad0a3df-fba5-748a-885d-981176e1a015@HIDDEN>
 <87woddu4t4.fsf@HIDDEN>
 <b71fb8c2-72f5-edfc-282b-f56ccf7db69f@HIDDEN>
 <871rvltytw.fsf@HIDDEN>
 <f6655496-864f-659b-a5b6-627f013ce2e8@HIDDEN>
 <878sptsizn.fsf@HIDDEN>
From: Hong Xu <hong@HIDDEN>
Openpgp: preference=signencrypt
Message-ID: <bc14fbdb-7918-1541-cae4-ee55191bb352@HIDDEN>
Date: Wed, 9 Oct 2019 15:51:39 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.9.0
MIME-Version: 1.0
In-Reply-To: <878sptsizn.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-ZohoMailClient: External
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 37655
Cc: 37655 <at> debbugs.gnu.org, larsi@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 10/9/19 2:32 PM, Eric Abrahamsen wrote:
>>
>> I don't observe incorrect date. Is there an incorrect date in the example above?
> 
> Yes, the dates as displayed in the Summary format line are off from the
> dates in the Date header of the article itself. At least, that's what
> I'm seeing in the Emacs -Q test.
> 
> In your personal messages, is it also the first thread in the Summary
> buffer that's sorted incorrectly? That would definitely indicate some
> sort of error in the start/end of looping.
> 

The date of the message is correct for my personal message. The example mbox file actually also shows the correct date (as posted in the original report), because the article at issue was dated Fri, 13 Oct 2000 10:15:42 +0900 in the mbox file, and I am on GMT-7, therefore 12 Oct 2000 was the correct date for me.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#37655; Package emacs. Full text available.

Message received at 37655 <at> debbugs.gnu.org:


Received: (at 37655) by debbugs.gnu.org; 9 Oct 2019 21:32:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 09 17:32:23 2019
Received: from localhost ([127.0.0.1]:54283 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iIJZG-0000eq-TR
	for submit <at> debbugs.gnu.org; Wed, 09 Oct 2019 17:32:23 -0400
Received: from ericabrahamsen.net ([52.70.2.18]:51164
 helo=mail.ericabrahamsen.net)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eric@HIDDEN>) id 1iIJZE-0000eb-7t
 for 37655 <at> debbugs.gnu.org; Wed, 09 Oct 2019 17:32:20 -0400
Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141])
 (Authenticated sender: eric@HIDDEN)
 by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 3BD32FA093;
 Wed,  9 Oct 2019 21:32:14 +0000 (UTC)
From: Eric Abrahamsen <eric@HIDDEN>
To: Hong Xu <hong@HIDDEN>
Subject: Re: bug#37655: 27.0.50; reversing
 `gnus-thread-sort-by-most-recent-date' does not work properly
References: <7ad0a3df-fba5-748a-885d-981176e1a015@HIDDEN>
 <87woddu4t4.fsf@HIDDEN>
 <b71fb8c2-72f5-edfc-282b-f56ccf7db69f@HIDDEN>
 <871rvltytw.fsf@HIDDEN>
 <f6655496-864f-659b-a5b6-627f013ce2e8@HIDDEN>
Date: Wed, 09 Oct 2019 14:32:12 -0700
In-Reply-To: <f6655496-864f-659b-a5b6-627f013ce2e8@HIDDEN> (Hong Xu's
 message of "Wed, 9 Oct 2019 14:08:51 -0700")
Message-ID: <878sptsizn.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 37655
Cc: 37655 <at> debbugs.gnu.org, larsi@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)


On 10/09/19 14:08 PM, Hong Xu wrote:
> On 10/9/19 2:04 PM, Eric Abrahamsen wrote:
>> Hong Xu <hong@HIDDEN> writes:
>> 
>>> On 10/9/19 11:55 AM, Eric Abrahamsen wrote:
>>>> I can reproduce this, but oddly it only seems to have gone wrong for
>>>> that one thread -- all the other threads in the mailbox seem to be
>>>> sorted correctly. I also note that the Summary buffer displays the date
>>>> of both messages in the thread as one day earlier than the Date header
>>>> in the message itself. So I wonder if there's just something weird about
>>>> one or both of the messages that's causing Gnus to handle the date
>>>> incorrectly.
>>>> When I have a bit more time I'll try to figure out what date Gnus is
>>>> trying to use for that thread.
>>>>
>>>
>>> On my personal messages, there is also only exactly one thread placed
>>> in the wrong position. My guess is that there may be something on the
>>> boundary not handled properly during sorting ...
>> Ah, I guess that would make sense. Are the dates also displayed
>> incorrectly in the Summary format line for the messages in that thread?
>> 
>
> I don't observe incorrect date. Is there an incorrect date in the example above?

Yes, the dates as displayed in the Summary format line are off from the
dates in the Date header of the article itself. At least, that's what
I'm seeing in the Emacs -Q test.

In your personal messages, is it also the first thread in the Summary
buffer that's sorted incorrectly? That would definitely indicate some
sort of error in the start/end of looping.

> I also observed that `gnus-thread-latest-date' does not return correct
> dates for some messages, although they displayed as in one thread.

Okay, noted. I'll probably have time to look deeper tomorrow.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#37655; Package emacs. Full text available.

Message received at 37655 <at> debbugs.gnu.org:


Received: (at 37655) by debbugs.gnu.org; 9 Oct 2019 21:08:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 09 17:08:57 2019
Received: from localhost ([127.0.0.1]:54264 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iIJCb-0008Sk-2I
	for submit <at> debbugs.gnu.org; Wed, 09 Oct 2019 17:08:57 -0400
Received: from sender4-of-o54.zoho.com ([136.143.188.54]:21448)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <hong@HIDDEN>) id 1iIJCa-0008Sc-0z
 for 37655 <at> debbugs.gnu.org; Wed, 09 Oct 2019 17:08:56 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1570655334; cv=none; d=zoho.com; s=zohoarc; 
 b=ep7DlHZ4anacSvZSd6BbVXWM1vVgbpv8xJ6hZ5mVTCJZBDpxpMDBsalA4Ds8LCm2xdf0SapEpEYs2PMXbKddalhNXu6FbUDIWUXS5Jc0/b6Y79La2rLs2ar8MaaFNdhMhpG1V8erQLZE7ZceXoRJ9nhWTfgofVHSunJHi4AhoZ8=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com;
 s=zohoarc; t=1570655334;
 h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To;
 bh=2TCNbUE151AgK/aVgcxC2XJM4dcqts2CBzuPKG6uh4w=; 
 b=U84jUs85EQGZIK4nBEFFnzWue/jBi5w5jFOqaLM9P7b54tjGvZrwuNC/kubOebo+QyPzujLtQwGaaz820LUd/xtKUdmDS2bxkV8L7YF6CO++ApeYHlH2BsSjtP1M1kk8o2VqZVq6nMB+M42XArh+/Lxs9bgte+djkyViHESIelY=
ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass  header.i=topbug.net;
 spf=pass  smtp.mailfrom=hong@HIDDEN;
 dmarc=pass header.from=<hong@HIDDEN> header.from=<hong@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1570655334; 
 s=zoho; d=topbug.net; i=hong@HIDDEN;
 h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding;
 l=1292; bh=2TCNbUE151AgK/aVgcxC2XJM4dcqts2CBzuPKG6uh4w=;
 b=hWz4lK4tnX1MCir6Xit2BpT8h7Hd0yc/lxvXznEw/LVicfsD2zm8xbSmRJS1XuvJ
 nQOjEZXMs2WBKbzVwyufRWlO1rSTu+8QWZN5QwScWmeQpAHyV2AtEYgTg7eHurJwPc3
 ZJfIGm+8i3cS/XFOL4oFGSUCwwxmPEwFvmov8qFo=
Received: from [192.168.88.88] (69-215-149-151.lightspeed.sntcca.sbcglobal.net
 [69.215.149.151]) by mx.zohomail.com
 with SMTPS id 1570655332711425.27020142433867;
 Wed, 9 Oct 2019 14:08:52 -0700 (PDT)
Subject: Re: bug#37655: 27.0.50; reversing
 `gnus-thread-sort-by-most-recent-date' does not work properly
To: Eric Abrahamsen <eric@HIDDEN>
References: <7ad0a3df-fba5-748a-885d-981176e1a015@HIDDEN>
 <87woddu4t4.fsf@HIDDEN>
 <b71fb8c2-72f5-edfc-282b-f56ccf7db69f@HIDDEN>
 <871rvltytw.fsf@HIDDEN>
From: Hong Xu <hong@HIDDEN>
Openpgp: preference=signencrypt
Message-ID: <f6655496-864f-659b-a5b6-627f013ce2e8@HIDDEN>
Date: Wed, 9 Oct 2019 14:08:51 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.9.0
MIME-Version: 1.0
In-Reply-To: <871rvltytw.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-ZohoMailClient: External
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 37655
Cc: 37655 <at> debbugs.gnu.org, larsi@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 10/9/19 2:04 PM, Eric Abrahamsen wrote:
> Hong Xu <hong@HIDDEN> writes:
> 
>> On 10/9/19 11:55 AM, Eric Abrahamsen wrote:
>>> I can reproduce this, but oddly it only seems to have gone wrong for
>>> that one thread -- all the other threads in the mailbox seem to be
>>> sorted correctly. I also note that the Summary buffer displays the date
>>> of both messages in the thread as one day earlier than the Date header
>>> in the message itself. So I wonder if there's just something weird about
>>> one or both of the messages that's causing Gnus to handle the date
>>> incorrectly.
>>> When I have a bit more time I'll try to figure out what date Gnus is
>>> trying to use for that thread.
>>>
>>
>> On my personal messages, there is also only exactly one thread placed
>> in the wrong position. My guess is that there may be something on the
>> boundary not handled properly during sorting ...
> 
> Ah, I guess that would make sense. Are the dates also displayed
> incorrectly in the Summary format line for the messages in that thread?
> 

I don't observe incorrect date. Is there an incorrect date in the example above?

I also observed that `gnus-thread-latest-date' does not return correct dates for some messages, although they displayed as in one thread.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#37655; Package emacs. Full text available.

Message received at 37655 <at> debbugs.gnu.org:


Received: (at 37655) by debbugs.gnu.org; 9 Oct 2019 21:04:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 09 17:04:54 2019
Received: from localhost ([127.0.0.1]:54253 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iIJ8g-0008Lq-6L
	for submit <at> debbugs.gnu.org; Wed, 09 Oct 2019 17:04:54 -0400
Received: from ericabrahamsen.net ([52.70.2.18]:50218
 helo=mail.ericabrahamsen.net)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eric@HIDDEN>) id 1iIJ8d-0008Lb-0c
 for 37655 <at> debbugs.gnu.org; Wed, 09 Oct 2019 17:04:52 -0400
Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141])
 (Authenticated sender: eric@HIDDEN)
 by mail.ericabrahamsen.net (Postfix) with ESMTPSA id BE1DCFA093;
 Wed,  9 Oct 2019 21:04:44 +0000 (UTC)
From: Eric Abrahamsen <eric@HIDDEN>
To: Hong Xu <hong@HIDDEN>
Subject: Re: bug#37655: 27.0.50; reversing
 `gnus-thread-sort-by-most-recent-date' does not work properly
References: <7ad0a3df-fba5-748a-885d-981176e1a015@HIDDEN>
 <87woddu4t4.fsf@HIDDEN>
 <b71fb8c2-72f5-edfc-282b-f56ccf7db69f@HIDDEN>
Date: Wed, 09 Oct 2019 14:04:43 -0700
In-Reply-To: <b71fb8c2-72f5-edfc-282b-f56ccf7db69f@HIDDEN> (Hong Xu's
 message of "Wed, 9 Oct 2019 13:44:46 -0700")
Message-ID: <871rvltytw.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 37655
Cc: 37655 <at> debbugs.gnu.org, larsi@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hong Xu <hong@HIDDEN> writes:

> On 10/9/19 11:55 AM, Eric Abrahamsen wrote:
>> I can reproduce this, but oddly it only seems to have gone wrong for
>> that one thread -- all the other threads in the mailbox seem to be
>> sorted correctly. I also note that the Summary buffer displays the date
>> of both messages in the thread as one day earlier than the Date header
>> in the message itself. So I wonder if there's just something weird about
>> one or both of the messages that's causing Gnus to handle the date
>> incorrectly.
>> When I have a bit more time I'll try to figure out what date Gnus is
>> trying to use for that thread.
>> 
>
> On my personal messages, there is also only exactly one thread placed
> in the wrong position. My guess is that there may be something on the
> boundary not handled properly during sorting ...

Ah, I guess that would make sense. Are the dates also displayed
incorrectly in the Summary format line for the messages in that thread?

Eric




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#37655; Package emacs. Full text available.

Message received at 37655 <at> debbugs.gnu.org:


Received: (at 37655) by debbugs.gnu.org; 9 Oct 2019 20:44:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 09 16:44:53 2019
Received: from localhost ([127.0.0.1]:54210 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iIIpJ-0003mZ-1E
	for submit <at> debbugs.gnu.org; Wed, 09 Oct 2019 16:44:53 -0400
Received: from sender4-of-o54.zoho.com ([136.143.188.54]:21411)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <hong@HIDDEN>) id 1iIIpH-0003mQ-RJ
 for 37655 <at> debbugs.gnu.org; Wed, 09 Oct 2019 16:44:52 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1570653889; cv=none; d=zoho.com; s=zohoarc; 
 b=JhG+NHnls4NYAngIVEy7INPOY3yqOPf/DNCbX1G5o/hoZu1FskK8m/UN/Jdzpk0go91zYnBP1fUsE7Bn++gMeFrMM1byYmFmH0I+IEnd+jd1yBT2gaLv413P4/0AjrWaK1C7oSv5bVrpdVPGlH0Wpc5+u4Z23OryxTvlQkVFXD8=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com;
 s=zohoarc; t=1570653889;
 h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To;
 bh=/MLj/ffO4bVi4t/t8pmKOvivi2IV9xvv1zX7d/jzGHg=; 
 b=MMYPMPlQzQNU2MNpUUIZHKyb0qAheMQy0M88h+aovisfAXar4uM2JN85s+24WypYSQ/3kyNPObeS98AzDagOFYVq1J7B6MKLhCcgnIiM92rl0UxfGc1f/v2qO1gAkRhy4/FoqQ/rVi4KjKEybAxEgvMohDeKCQi3mF3kXiA5Ljo=
ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass  header.i=topbug.net;
 spf=pass  smtp.mailfrom=hong@HIDDEN;
 dmarc=pass header.from=<hong@HIDDEN> header.from=<hong@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1570653889; 
 s=zoho; d=topbug.net; i=hong@HIDDEN;
 h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding;
 l=805; bh=/MLj/ffO4bVi4t/t8pmKOvivi2IV9xvv1zX7d/jzGHg=;
 b=NfgrPagLpCTdDHQemXuROHIfRi4L8lyvWKSCHfD7ZLSSShgRJGG7TbxTojjAEGTF
 DEgxsRcUW+IA44LgaApizi3q56eiwIdAxKKZA/Hk/fkL+9RbC/ORNBczxf0f1ovCHDG
 HI1nRvkotjQxZ29SX8da0zOSKGYMwljBuG/D/Eag=
Received: from [192.168.88.88] (69-215-149-151.lightspeed.sntcca.sbcglobal.net
 [69.215.149.151]) by mx.zohomail.com
 with SMTPS id 1570653887650940.5536395757397;
 Wed, 9 Oct 2019 13:44:47 -0700 (PDT)
Subject: Re: bug#37655: 27.0.50; reversing
 `gnus-thread-sort-by-most-recent-date' does not work properly
To: Eric Abrahamsen <eric@HIDDEN>
References: <7ad0a3df-fba5-748a-885d-981176e1a015@HIDDEN>
 <87woddu4t4.fsf@HIDDEN>
From: Hong Xu <hong@HIDDEN>
Openpgp: preference=signencrypt
Message-ID: <b71fb8c2-72f5-edfc-282b-f56ccf7db69f@HIDDEN>
Date: Wed, 9 Oct 2019 13:44:46 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.9.0
MIME-Version: 1.0
In-Reply-To: <87woddu4t4.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-ZohoMailClient: External
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 37655
Cc: 37655 <at> debbugs.gnu.org, larsi@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 10/9/19 11:55 AM, Eric Abrahamsen wrote:
> 
> I can reproduce this, but oddly it only seems to have gone wrong for
> that one thread -- all the other threads in the mailbox seem to be
> sorted correctly. I also note that the Summary buffer displays the date
> of both messages in the thread as one day earlier than the Date header
> in the message itself. So I wonder if there's just something weird about
> one or both of the messages that's causing Gnus to handle the date
> incorrectly.
> 
> When I have a bit more time I'll try to figure out what date Gnus is
> trying to use for that thread.
> 

On my personal messages, there is also only exactly one thread placed in the wrong position. My guess is that there may be something on the boundary not handled properly during sorting ...





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#37655; Package emacs. Full text available.

Message received at 37655 <at> debbugs.gnu.org:


Received: (at 37655) by debbugs.gnu.org; 9 Oct 2019 18:55:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 09 14:55:53 2019
Received: from localhost ([127.0.0.1]:54122 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iIH7l-0007NO-FL
	for submit <at> debbugs.gnu.org; Wed, 09 Oct 2019 14:55:53 -0400
Received: from ericabrahamsen.net ([52.70.2.18]:45866
 helo=mail.ericabrahamsen.net)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eric@HIDDEN>) id 1iIH7f-0007N5-BJ
 for 37655 <at> debbugs.gnu.org; Wed, 09 Oct 2019 14:55:48 -0400
Received: from localhost (67-40-27-198.tukw.qwest.net [67.40.27.198])
 (Authenticated sender: eric@HIDDEN)
 by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 04BE0FA093;
 Wed,  9 Oct 2019 18:55:36 +0000 (UTC)
From: Eric Abrahamsen <eric@HIDDEN>
To: Hong Xu <hong@HIDDEN>
Subject: Re: bug#37655: 27.0.50; reversing
 `gnus-thread-sort-by-most-recent-date' does not work properly
References: <7ad0a3df-fba5-748a-885d-981176e1a015@HIDDEN>
Date: Wed, 09 Oct 2019 11:55:35 -0700
In-Reply-To: <7ad0a3df-fba5-748a-885d-981176e1a015@HIDDEN> (Hong Xu's
 message of "Mon, 7 Oct 2019 22:02:04 -0700")
Message-ID: <87woddu4t4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 37655
Cc: 37655 <at> debbugs.gnu.org, larsi@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hong Xu <hong@HIDDEN> writes:

> Reversing `gnus-thread-sort-by-most-recent-date' does not seem to work pr=
operly.
>
> To reproduce:
>
> Download the test mbox file from here: https://lists.gnu.org/archive/mbox=
/bug-gnu-emacs/2000-10 and save it as 2000-10.mbox.
>
> Start Emacs with "-Q", and evaluate the following:
>
> 	;; Latest at bottom
> 	(setq gnus-thread-sort-functions
> 	      '((not gnus-thread-sort-by-most-recent-date)))
>
> 	(setq gnus-summary-line-format "%U%R%z %(%&user-date;  %-15,15f  %B %s%)=
\n")
>
> `M-x gnus', followed by `G f /path/to/2000-10.mbox'. There is only one to=
pic. Type `C-u Enter'.
>
> The summary buffer is supposed to sort the messages in reversed most rece=
nt date order in each thread, but a lot of non-compliance can be observed. =
For instance:
>
>     Oct 02 2000  wm08894@HIDDEN  >  (no subject)
>     Oct 12 2000  fujyama yuu        \->
>     Oct 05 2000  bigsuma@HIDDEN   Repost PLEASE HELP or reply!!! please =
 :)
>     Oct 05 2000  Stefan Reich=C3=B6r    Docstring for kill-line not compl=
ete
>
>
> The ``(no subject)'' thread's latest mail is on Oct 12, but ``Docstring f=
or kill-line not complete'' on Oct 05 is positioned after that.

I can reproduce this, but oddly it only seems to have gone wrong for
that one thread -- all the other threads in the mailbox seem to be
sorted correctly. I also note that the Summary buffer displays the date
of both messages in the thread as one day earlier than the Date header
in the message itself. So I wonder if there's just something weird about
one or both of the messages that's causing Gnus to handle the date
incorrectly.

When I have a bit more time I'll try to figure out what date Gnus is
trying to use for that thread.

Eric




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#37655; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 8 Oct 2019 05:02:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 08 01:02:26 2019
Received: from localhost ([127.0.0.1]:49348 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iHhde-0004cn-7m
	for submit <at> debbugs.gnu.org; Tue, 08 Oct 2019 01:02:25 -0400
Received: from lists.gnu.org ([209.51.188.17]:46054)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <hong@HIDDEN>) id 1iHhdZ-0004cc-Fo
 for submit <at> debbugs.gnu.org; Tue, 08 Oct 2019 01:02:21 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:37414)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <hong@HIDDEN>) id 1iHhdV-0007SB-Ro
 for bug-gnu-emacs@HIDDEN; Tue, 08 Oct 2019 01:02:17 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <hong@HIDDEN>) id 1iHhdR-0002hl-SC
 for bug-gnu-emacs@HIDDEN; Tue, 08 Oct 2019 01:02:13 -0400
Received: from sender4-of-o54.zoho.com ([136.143.188.54]:21405)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <hong@HIDDEN>) id 1iHhdQ-0002gq-0X
 for bug-gnu-emacs@HIDDEN; Tue, 08 Oct 2019 01:02:08 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1570510926; cv=none; d=zoho.com; s=zohoarc; 
 b=fLxawLDALwWU7XMHQRvSPysC7FQUC5hhRvUPU2LSn6lRjs3Y7eUKqmcPLYDlPaDD6m3Si3iS1wPOAFzGaGVYqKl/MuXRBVRTvbVZRchuou11WAEz4soB4h38qB43fIBtHKoF895yku0bYZ6g2vIdPafhcIrFRzcZhfzRRmGlK/s=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com;
 s=zohoarc; t=1570510926;
 h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Subject:To:ARC-Authentication-Results;
 bh=dNOqNXo2PZ68k/EAjiiW5tkpGZ5m1e3HJyI5z/fH0XU=; 
 b=DjaclgtSKcbBBXE4f5GV3F19w/5YTzvVPcAno2kLGyptIo/uVWjpAjW0+hDELAPMlUhVVm9tT0WeeT/VWxQ1g1q0Nz11ktpb9PljT9N7jDUC8FzOB9BfDNq7JhXcVvzI6B8kOzjHbpQuZs2oUdx0DiY3N5eGOWgq3Byc5UqZDww=
ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass  header.i=topbug.net;
 spf=pass  smtp.mailfrom=hong@HIDDEN;
 dmarc=pass header.from=<hong@HIDDEN> header.from=<hong@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1570510926; 
 s=zoho; d=topbug.net; i=hong@HIDDEN;
 h=To:From:Message-ID:Subject:Date:MIME-Version:Content-Type:Content-Transfer-Encoding;
 l=2005; bh=dNOqNXo2PZ68k/EAjiiW5tkpGZ5m1e3HJyI5z/fH0XU=;
 b=gLjeKMjveom23rBnDA3tG65ur32xcy0Vra+X5XFp324NmpAuwCN7w6gQjFRdX5aq
 qpBGDK9GU3wFNEzFqbasIJ+N8MdoAlgylCp5t9VtZQ6bGLfMzwFNuYOwhF2Oslr4q8l
 hDRnJw7Orj5JhlJmU8iAQ8kp3+dMo7/X3wiiHHf8=
Received: from [192.168.88.88] (69-215-149-151.lightspeed.sntcca.sbcglobal.net
 [69.215.149.151]) by mx.zohomail.com
 with SMTPS id 1570510924943558.8271615821664;
 Mon, 7 Oct 2019 22:02:04 -0700 (PDT)
To: bug-gnu-emacs <bug-gnu-emacs@HIDDEN>, Lars Ingebrigtsen <larsi@HIDDEN>
From: Hong Xu <hong@HIDDEN>
Message-ID: <7ad0a3df-fba5-748a-885d-981176e1a015@HIDDEN>
Subject: 27.0.50; reversing `gnus-thread-sort-by-most-recent-date' does not
 work properly
Openpgp: preference=signencrypt
Date: Mon, 7 Oct 2019 22:02:04 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.9.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
X-ZohoMailClient: External
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-Received-From: 136.143.188.54
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Reversing `gnus-thread-sort-by-most-recent-date' does not seem to work prop=
erly.

To reproduce:

Download the test mbox file from here: https://lists.gnu.org/archive/mbox/b=
ug-gnu-emacs/2000-10 and save it as 2000-10.mbox.

Start Emacs with "-Q", and evaluate the following:

=09;; Latest at bottom
=09(setq gnus-thread-sort-functions
=09      '((not gnus-thread-sort-by-most-recent-date)))

=09(setq gnus-summary-line-format "%U%R%z %(%&user-date;  %-15,15f  %B %s%)=
\n")

`M-x gnus', followed by `G f /path/to/2000-10.mbox'. There is only one topi=
c. Type `C-u Enter'.

The summary buffer is supposed to sort the messages in reversed most recent=
 date order in each thread, but a lot of non-compliance can be observed. Fo=
r instance:

     Oct 02 2000  wm08894@HIDDEN  >  (no subject)
     Oct 12 2000  fujyama yuu        \->
     Oct 05 2000  bigsuma@HIDDEN   Repost PLEASE HELP or reply!!! please  =
:)
     Oct 05 2000  Stefan Reich=C3=B6r    Docstring for kill-line not comple=
te


The ``(no subject)'' thread's latest mail is on Oct 12, but ``Docstring for=
 kill-line not complete'' on Oct 05 is positioned after that.

In GNU Emacs 27.0.50 (build 5, x86_64-pc-linux-gnu, GTK+ Version 3.24.5)
  of 2019-10-07 built on home
Repository revision: 32a67a5cfbfb92a9f76a5caf1c4b84beffcb1d9e
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12004000
System Description: Debian GNU/Linux 10 (buster)

Configured using:
  'configure --with-modules --with-xwidgets
  --prefix=3D/home/hong/.local/opt/emacs/
  '--program-transform-name=3Ds/^ctags$/ctags.emacs/' --with-mailutils
  'CFLAGS=3D-march=3Dnative -O3''

Configured features:
XPM JPEG TIFF GIF PNG SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY
LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ XFT ZLIB TOOLKIT_SCROLL_BARS
GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS PDUMPER GMP

Important settings:
   value of $LANG: en_US.UTF-8
   value of $XMODIFIERS: @im=3Dfcitx
   locale-coding-system: utf-8-unix






Acknowledgement sent to Hong Xu <hong@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#37655; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 9 Oct 2019 23:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.