Re: ProtonMail Bridge Patch
Eric Abrahamsen <[email protected]>
| Newsgroups | gmane.emacs.gnus.general |
|---|---|
| Message-ID | <[email protected]> |
Jakub Ječmínek <[email protected]> writes: > "Eric Abrahamsen" <[email protected]> writes: > >> Yes! That's it, thanks very much. The question remains where exactly to >> address this, but it's good to know why it's behaving this way. I'll put >> this on the list. > > I don't think we have good/elegant way to do it. I see two options: > > 1. Implement custom sorting in nnimap.el back end. > > This would require substantial work because we'd have to modify all the > definitions where we perform FETCH & SEARCH (AFAIK these two commands > are the only affected). It's possible that all that would be necessary is to add a routine at the bottom of `nnimap-transform-headers', to sort the buffer text. The SEARCH command is handled differently, I believe. > 2. Modify the functions in gnus-range.el to accept unsorted lists > > I don't know the internals good enough to tell if this would be > enough. There might be other parts in Gnus which also expect sorted > headers/messages/lists/etc that I'm not aware of. I don't think modifying gnus-range is a good idea -- if that code requires sorted ranges, we should just make sure it's always given sorted ranges.