Re: ProtonMail Bridge Patch
Jakub Ječmínek <[email protected]>
| Newsgroups | gmane.emacs.gnus.general |
|---|---|
| Message-ID | <[email protected]> |
"Eric Abrahamsen" <[email protected]> writes: > Huh. Yeah, I absolutely believe it's true, I just wish I could pinpoint > where. Ok, I think I've found it. The problem is that we're feeding unsorted lists into a bunch of functions that require lists to be sorted (a lot of functions do in 'gnus-range.el'). **Example 1:** Inside the body of 'gnus-select-newsgroup' ('gnus-sum.el'). (setq gnus-newsgroup-unreads (gnus-sorted-nintersection gnus-newsgroup-unreads fetched-articles)) ... (gnus-update-missing-marks (gnus-sorted-difference articles fetched-articles)) **Example 2:** Inside the body of 'nnimap-update-info' ('nnimap.el'). (let* ((unread (gnus-compress-sequence (gnus-set-difference (gnus-set-difference existing (gnus-sorted-union (cdr (assoc '%Seen flags)) (cdr (assoc '%Deleted flags)))) (cdr (assoc '%Flagged flags))))) (read (range-difference (cons start-article high) unread))) -- Kuba Ječmínek (http://kubajecminek.cz)