Gnus development mailing list
 help / color / mirror / Atom feed
* Sorting order in splitting target groups
@ 2020-12-06  2:24 Pankaj Jangid
  2020-12-06 11:42 ` Pankaj Jangid
  0 siblings, 1 reply; 4+ messages in thread
From: Pankaj Jangid @ 2020-12-06  2:24 UTC (permalink / raw)
  To: Gnus Users

I am using IMAP. And the sorting order in the INBOX folders is
chronological i.e. the latest emails are at the bottom. But I am also
using splitting rules and most of my emails end up in other groups.

In those groups which are target of splitting, the sort order is
reverse chronological i.e. new mails are at the top. And within a thread
also the order is reverse chronological. Like this,

--8<---------------cut here---------------start------------->8---
11     Today, 03:05     [   6(8.7k):Michael Heerdegen      ] █ Re: Removing line and column...
12     Today, 04:24     [  34(9.5k):daniela-spit@gmx.it    ]   └─▶
13     Today, 04:27     [   8(9.4k):Drew Adams             ]     └─▶
14     Today, 04:35     [  17(8.8k):daniela-spit@gmx.it    ]       └─▶
15     Today, 05:07     [  15(  9k):Drew Adams             ]         └─▶
16     Today, 05:23     [  32(9.6k):daniela-spit@gmx.it    ]           └─▶
17     Today, 03:02     {  11(6.7k):Michael Heerdegen      }             └─▶
18     Yesterday, 23:28 {  21(7.0k):Jean Louis             }               └─▶
19     Yesterday, 23:46 [  16(9.4k):Drew Adams             ]                 └─▶
20     Today, 00:27     [  12(6.5k):Jean Louis             ]                   └─▶
--8<---------------cut here---------------end--------------->8---

When it is reply in a thread, these are properly ordered, except a
few. I don't understand the logic here. Please somebody explain this to
me.

Look at line 18, this is a reply to a a future email. Line 20 is also
reply to a future email.

Even if it is not a thread, the order is reverse chronological.

--8<---------------cut here---------------start------------->8---
 1     Today, 06:19     [  32(8.8k):Christopher Dimech     ] ▒ Re: Cycle Auto-Fill
 2     Today, 03:30     {   6(5.7k):Michael Heerdegen      }   └─▶
 3     Today, 04:08     [  11(7.5k):Christopher Dimech     ]     ├─▶
 4     Today, 05:23     [  23(6.7k):Michael Heerdegen      ]     │ └─▶
 5     Today, 03:36     [   2(8.0k):Drew Adams             ]     └─▶
 6     Today, 04:28     [  52(8.5k):Amin Bandali           ] [ANN] EmacsConf 2020 videos are out!
 7     Today, 04:04     [  62( 11k):arthur miller          ] █ RE: Which modifier to use?
 8     Today, 04:28     [  19(8.0k):TRS-80                 ] └─▶
 9     Today, 06:28     [  23(9.7k):arthur miller          ]   └─▶
10     Today, 03:10     [  47(  9k):Michael Heerdegen      ] Re: Need to know how to goto-column
--8<---------------cut here---------------end--------------->8---

Inbox is chronological. Like this,

--8<---------------cut here---------------start------------->8---
28     Today, 02:02     [  27(5.1k):automatic@2checkout.com] Online Order Notification #283
29     Today, 02:02     [  27(5.1k):automatic@2checkout.com] Online Order Notification #283
30     Today, 02:29     [  22( 28k):'Lazorchak, Robert' via] Email never showed up 
31     Today, 02:50     [  14( 11k):Optimizory Administrato] CRM: New User Registered
32     Today, 05:35     [  10(6.7k):Google Calendar        ] No eventsscheduled today.
--8<---------------cut here---------------end--------------->8---

My question is: Is this possible that I am doing something wrong to mess
up with the sorting order /or/ is this the default sorting in splitting
target groups? If it is default then what is the logic?


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Sorting order in splitting target groups
  2020-12-06  2:24 Sorting order in splitting target groups Pankaj Jangid
@ 2020-12-06 11:42 ` Pankaj Jangid
  2020-12-06 13:40   ` Eric S Fraga
  0 siblings, 1 reply; 4+ messages in thread
From: Pankaj Jangid @ 2020-12-06 11:42 UTC (permalink / raw)
  To: Gnus Users

Pankaj Jangid <pankaj@codeisgreat.org> writes:

> I am using IMAP. And the sorting order in the INBOX folders is
> chronological i.e. the latest emails are at the bottom. But I am also
> using splitting rules and most of my emails end up in other groups.
>
> In those groups which are target of splitting, the sort order is
> reverse chronological i.e. new mails are at the top. And within a thread
> also the order is reverse chronological. Like this,

Work on it for sometime. And found that the article numbers generated
are not in the order of article date. And the value of my
`gnus-thread-sorting-functions' is default.

Its value is (gnus-thread-sort-by-number)

Is this something that is related to IMAP? Probably IMAP is sending
articles in random order and Gnus assigns them numbers in that order.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Sorting order in splitting target groups
  2020-12-06 11:42 ` Pankaj Jangid
@ 2020-12-06 13:40   ` Eric S Fraga
  2020-12-06 15:44     ` Pankaj Jangid
  0 siblings, 1 reply; 4+ messages in thread
From: Eric S Fraga @ 2020-12-06 13:40 UTC (permalink / raw)
  To: ding

On Sunday,  6 Dec 2020 at 17:12, Pankaj Jangid wrote:
> Its value is (gnus-thread-sort-by-number)

Using number, as you have found, can lead to confusing results.  Have
you tried gnus-thread-sort-by-date?

-- 
Eric S Fraga via Emacs 28.0.50 & org 9.4 on Debian bullseye/sid



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Sorting order in splitting target groups
  2020-12-06 13:40   ` Eric S Fraga
@ 2020-12-06 15:44     ` Pankaj Jangid
  0 siblings, 0 replies; 4+ messages in thread
From: Pankaj Jangid @ 2020-12-06 15:44 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: ding

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> On Sunday,  6 Dec 2020 at 17:12, Pankaj Jangid wrote:
>> Its value is (gnus-thread-sort-by-number)
>
> Using number, as you have found, can lead to confusing results.  Have
> you tried gnus-thread-sort-by-date?

(setq gnus-thread-sort-functions
      '(gnus-thread-sort-by-number
        gnus-thread-sort-by-date))

I am using this now. There are still few case that I'll have to figure
out. But overall better now.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-12-06 15:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-06  2:24 Sorting order in splitting target groups Pankaj Jangid
2020-12-06 11:42 ` Pankaj Jangid
2020-12-06 13:40   ` Eric S Fraga
2020-12-06 15:44     ` Pankaj Jangid

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).