From unknown Mon Aug 18 14:23:51 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#37655 <37655@debbugs.gnu.org> To: bug#37655 <37655@debbugs.gnu.org> Subject: Status: 27.0.50; reversing `gnus-thread-sort-by-most-recent-date' does not work properly Reply-To: bug#37655 <37655@debbugs.gnu.org> Date: Mon, 18 Aug 2025 21:23:51 +0000 retitle 37655 27.0.50; reversing `gnus-thread-sort-by-most-recent-date' doe= s not work properly reassign 37655 emacs submitter 37655 Hong Xu severity 37655 normal tag 37655 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 08 01:02:26 2019 Received: (at submit) by debbugs.gnu.org; 8 Oct 2019 05:02:26 +0000 Received: from localhost ([127.0.0.1]:49348 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHhde-0004cn-7m for submit@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 ) id 1iHhdZ-0004cc-Fo for submit@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 ) id 1iHhdV-0007SB-Ro for bug-gnu-emacs@gnu.org; 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 ) id 1iHhdR-0002hl-SC for bug-gnu-emacs@gnu.org; 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 ) id 1iHhdQ-0002gq-0X for bug-gnu-emacs@gnu.org; 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@topbug.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1570510926; s=zoho; d=topbug.net; i=hong@topbug.net; 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 , Lars Ingebrigtsen From: Hong Xu Message-ID: <7ad0a3df-fba5-748a-885d-981176e1a015@topbug.net> 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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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@educ.cc > (no subject) Oct 12 2000 fujyama yuu \-> Oct 05 2000 bigsuma@home.co 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 From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 09 14:55:53 2019 Received: (at 37655) by debbugs.gnu.org; 9 Oct 2019 18:55:53 +0000 Received: from localhost ([127.0.0.1]:54122 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iIH7l-0007NO-FL for submit@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 ) id 1iIH7f-0007N5-BJ for 37655@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@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 04BE0FA093; Wed, 9 Oct 2019 18:55:36 +0000 (UTC) From: Eric Abrahamsen To: Hong Xu 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@topbug.net> Date: Wed, 09 Oct 2019 11:55:35 -0700 In-Reply-To: <7ad0a3df-fba5-748a-885d-981176e1a015@topbug.net> (Hong Xu's message of "Mon, 7 Oct 2019 22:02:04 -0700") Message-ID: <87woddu4t4.fsf@ericabrahamsen.net> 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@debbugs.gnu.org, larsi@gnus.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hong Xu 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@educ.cc > (no subject) > Oct 12 2000 fujyama yuu \-> > Oct 05 2000 bigsuma@home.co 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 From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 09 16:44:53 2019 Received: (at 37655) by debbugs.gnu.org; 9 Oct 2019 20:44:53 +0000 Received: from localhost ([127.0.0.1]:54210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iIIpJ-0003mZ-1E for submit@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 ) id 1iIIpH-0003mQ-RJ for 37655@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@topbug.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1570653889; s=zoho; d=topbug.net; i=hong@topbug.net; 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 References: <7ad0a3df-fba5-748a-885d-981176e1a015@topbug.net> <87woddu4t4.fsf@ericabrahamsen.net> From: Hong Xu Openpgp: preference=signencrypt Message-ID: 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@ericabrahamsen.net> 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@debbugs.gnu.org, larsi@gnus.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 ... From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 09 17:04:54 2019 Received: (at 37655) by debbugs.gnu.org; 9 Oct 2019 21:04:54 +0000 Received: from localhost ([127.0.0.1]:54253 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iIJ8g-0008Lq-6L for submit@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 ) id 1iIJ8d-0008Lb-0c for 37655@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@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id BE1DCFA093; Wed, 9 Oct 2019 21:04:44 +0000 (UTC) From: Eric Abrahamsen To: Hong Xu 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@topbug.net> <87woddu4t4.fsf@ericabrahamsen.net> Date: Wed, 09 Oct 2019 14:04:43 -0700 In-Reply-To: (Hong Xu's message of "Wed, 9 Oct 2019 13:44:46 -0700") Message-ID: <871rvltytw.fsf@ericabrahamsen.net> 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@debbugs.gnu.org, larsi@gnus.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hong Xu 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 From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 09 17:08:57 2019 Received: (at 37655) by debbugs.gnu.org; 9 Oct 2019 21:08:57 +0000 Received: from localhost ([127.0.0.1]:54264 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iIJCb-0008Sk-2I for submit@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 ) id 1iIJCa-0008Sc-0z for 37655@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@topbug.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1570655334; s=zoho; d=topbug.net; i=hong@topbug.net; 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 References: <7ad0a3df-fba5-748a-885d-981176e1a015@topbug.net> <87woddu4t4.fsf@ericabrahamsen.net> <871rvltytw.fsf@ericabrahamsen.net> From: Hong Xu Openpgp: preference=signencrypt Message-ID: 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@ericabrahamsen.net> 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@debbugs.gnu.org, larsi@gnus.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 10/9/19 2:04 PM, Eric Abrahamsen wrote: > Hong Xu 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. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 09 17:32:23 2019 Received: (at 37655) by debbugs.gnu.org; 9 Oct 2019 21:32:23 +0000 Received: from localhost ([127.0.0.1]:54283 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iIJZG-0000eq-TR for submit@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 ) id 1iIJZE-0000eb-7t for 37655@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@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 3BD32FA093; Wed, 9 Oct 2019 21:32:14 +0000 (UTC) From: Eric Abrahamsen To: Hong Xu 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@topbug.net> <87woddu4t4.fsf@ericabrahamsen.net> <871rvltytw.fsf@ericabrahamsen.net> Date: Wed, 09 Oct 2019 14:32:12 -0700 In-Reply-To: (Hong Xu's message of "Wed, 9 Oct 2019 14:08:51 -0700") Message-ID: <878sptsizn.fsf@ericabrahamsen.net> 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@debbugs.gnu.org, larsi@gnus.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 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. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 09 18:51:49 2019 Received: (at 37655) by debbugs.gnu.org; 9 Oct 2019 22:51:49 +0000 Received: from localhost ([127.0.0.1]:54406 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iIKo9-0000az-2m for submit@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 ) id 1iIKo7-0000ap-88 for 37655@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@topbug.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1570661502; s=zoho; d=topbug.net; i=hong@topbug.net; 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 References: <7ad0a3df-fba5-748a-885d-981176e1a015@topbug.net> <87woddu4t4.fsf@ericabrahamsen.net> <871rvltytw.fsf@ericabrahamsen.net> <878sptsizn.fsf@ericabrahamsen.net> From: Hong Xu Openpgp: preference=signencrypt Message-ID: 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@ericabrahamsen.net> 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@debbugs.gnu.org, larsi@gnus.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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. From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 18 00:46:29 2019 Received: (at 37655) by debbugs.gnu.org; 18 Oct 2019 04:46:29 +0000 Received: from localhost ([127.0.0.1]:49163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iLK9k-0004tr-OY for submit@debbugs.gnu.org; Fri, 18 Oct 2019 00:46:29 -0400 Received: from ericabrahamsen.net ([52.70.2.18]:60646 helo=mail.ericabrahamsen.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iLK9j-0004te-AU for 37655@debbugs.gnu.org; Fri, 18 Oct 2019 00:46:27 -0400 Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 65011FA07E; Fri, 18 Oct 2019 04:46:20 +0000 (UTC) From: Eric Abrahamsen To: Hong Xu 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@topbug.net> <87woddu4t4.fsf@ericabrahamsen.net> <871rvltytw.fsf@ericabrahamsen.net> <878sptsizn.fsf@ericabrahamsen.net> Date: Thu, 17 Oct 2019 21:46:19 -0700 In-Reply-To: (Hong Xu's message of "Wed, 9 Oct 2019 15:51:39 -0700") Message-ID: <87zhhy64pw.fsf@ericabrahamsen.net> 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@debbugs.gnu.org, larsi@gnus.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) On 10/09/19 15:51 PM, Hong Xu wrote: > 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. Right, sorry, I wasn't thinking clearly. Unfortunately I haven't been able to make any process on this. Threading is so complicated I can't even get a little test case going in the *scratch* buffer to see what's happening. I'm going to have to bow out of this one... From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 28 11:05:18 2019 Received: (at 37655) by debbugs.gnu.org; 28 Oct 2019 15:05:18 +0000 Received: from localhost ([127.0.0.1]:46155 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iP6a0-0005vt-RQ for submit@debbugs.gnu.org; Mon, 28 Oct 2019 11:05:16 -0400 Received: from quimby.gnus.org ([80.91.231.51]:41654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iP6Zs-0005vI-3l for 37655@debbugs.gnu.org; Mon, 28 Oct 2019 11:05:08 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iP6Zm-0000AK-4D; Mon, 28 Oct 2019 16:05:02 +0100 From: Lars Ingebrigtsen To: Hong Xu 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@topbug.net> Date: Mon, 28 Oct 2019 16:04:57 +0100 In-Reply-To: <7ad0a3df-fba5-748a-885d-981176e1a015@topbug.net> (Hong Xu's message of "Mon, 7 Oct 2019 22:02:04 -0700") Message-ID: <87lft4ap2e.fsf@gnus.org> 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-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Hong Xu writes: > 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% [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 37655 Cc: 37655@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hong Xu writes: > 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@educ.cc > (no subject) > Oct 12 2000 fujyama yuu \-> > Oct 05 2000 bigsuma@home.co Repost PLEASE HELP or reply!!! please = :) > Oct 05 2000 Stefan Reich=C3=B6r Docstring for kill-line not compl= ete With the formatting you've chosen, you can't see any difference between real threads and gathered threads. gnus-thread-sort-functions is about how real threads are sorted. After sorting, if you have thread gathering switched on, articles with the same subject (in the example mail box "(no subject")) are displayed after one another, but that doesn't affect the sorting. So this isn't a bug, and this works as designed. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 28 11:05:08 2019 Received: (at control) by debbugs.gnu.org; 28 Oct 2019 15:05:08 +0000 Received: from localhost ([127.0.0.1]:46153 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iP6Zw-0005vc-Ia for submit@debbugs.gnu.org; Mon, 28 Oct 2019 11:05:08 -0400 Received: from quimby.gnus.org ([80.91.231.51]:41674) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iP6Zu-0005vO-UJ for control@debbugs.gnu.org; Mon, 28 Oct 2019 11:05:07 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iP6Zs-0000Aa-5t for control@debbugs.gnu.org; Mon, 28 Oct 2019 16:05:06 +0100 Date: Mon, 28 Oct 2019 16:05:03 +0100 Message-Id: <87k18oap28.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #37655 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 37655 notabug close 37655 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 37655 notabug close 37655 quit From unknown Mon Aug 18 14:23:51 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 26 Nov 2019 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator