<DKIM> Re: [PATCH] Re: Sort message UID list

Nicolas Sebrecht nicolas.s-dev at laposte.net
Sun Aug 14 00:58:54 BST 2016


On Sun, Aug 14, 2016 at 12:42:35AM +0300, Dmitry Alexandrov wrote:
> Nicolas Sebrecht <nicolas.s-dev at laposte.net> writes:
> 
> > On Sat, Jul 07, 2012 at 08:16:56PM -0700, James E. Blair wrote:
> >> Return a sorted list of UIDs in getmessageuidlist.
> >> 
> >> Some MUAs (and their users) like to display messages in UID order
> >> (or "order received").  If offlineimap is used in IMAP<->IMAP mode,
> >> then the order messages are received by the second IMAP server will
> >> be different because offlineimap iterates over a UID list produced
> >> from the keys of a dictionary, which is unsorted.
> >> 
> >> This change sorts that list of UIDs so that both IMAP servers will
> >> have their messages in the same order (except those times where
> >> messages are appended to folders on both repositories between
> >> syncs).
> >> 
> >> Signed-off-by: James E. Blair <corvus at gnu.org>
> >
> > Thanks; applied to pu, for now.
> 
> Hello.
> 
> I’ve just installed OfflineIMAP, made an initial sync — and got my mail
> folders in a messed up order, so I found this thread.
> 
> The point is, as I can see [0], that a list of messages is returned
> unordered for now again.  So may I ask, what happened with this little
> patch over the last four years?  Why was it reverted back?
> 
> [0] https://github.com/OfflineIMAP/offlineimap/blob/473be4c66fd98f767257c861d7783049a234e33f/offlineimap/folder/Base.py#L305

I have no idea why this never hit the mainline. Applied.

You can test current `next` branch.

-- 
Nicolas Sebrecht




More information about the OfflineIMAP-project mailing list