-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi, and sorry for the delayed reply!
On Fri, Nov 07, 2025 at 02:18:11AM -0800, Nikolas wrote:
>When I for example set it to 100, it does load the newest 100 entries
>of
>that feed that are loaded in Miniflux, right?
>If I set all 100 entries to "read", it does sync them back to Miniflux,
>which works fine.
>But it does not load older unread entries from that feed so they stay
>unread in Miniflux.
>Is that how it works?
Yep, that sounds right.
>Otherwise, if I do not set "read" status on the 100 loaded entries and wait
>until a new entry appears on the feed, it would swap out the oldest entry
>and replace it with this new one?
Almost. In fact, the oldest *unflagged* entry will be swapped out, and
then the new entry will be added.
Now that I look at the code, apparently there are some holes in here.
First of all, `max-items` is applied both when writing to the database
and reading from it. When writing, we apparently don't apply any
pre-defined sorting, so it's unknown what items will get dropped — could
be oldest, could be newest, could be first one alphabetically etc. This
seems wrong. I made a note to look further into this when I have time.
Second, if there are more than `max-items` flagged items, no new items
can be added. On the one hand this works as specified, but on the other
hand it's impossible to tell if there are new items that *could* be
added. Feels like we could improve this, but I don't yet see how.
- --
Regards,
Alexander Batischev
PGP key 356961A20C8BFD03
Fingerprint: CE6C 4307 9348 58E3 FD94 A00F 3569 61A2 0C8B FD03
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEzmxDB5NIWOP9lKAPNWlhogyL/QMFAmlToJ0ACgkQNWlhogyL
/QNtcA/6A9HNBu+L3oyrd5DjRLcPJfZg/Urw64qHKVLUhkileWPASOttKE7yViP5
+Db6A/8hO0CAprv6Em6o1JfiksHMTF1zmRg6qA8ngpxxiGiEfqdHOy/6ZwVh4Xfp
GQV8JRdE6wxMqe/XFiKvDn0pntmunQzAFMkilja9kud0ilrfLLNlgRzMdZs8pzcM
5twTBmull8qzXhJt7muGqqL8/SDT3Tob0qf3AdmoJ20Cc/Gpsv8B9ZiN3iCXHudS
RC6qHFwQ4vFYQLaNDjWM5U/tlQchPEnsKBCrXHWJ1V0ulXM8mXP399BbLrUzkdxx
o9gZKJVJh9KoDcbBodg3fY0AX9Swg4HeD4q4RDRNRYwOsNyihY5sH6Wg7jzpN1Kk
oayV9CjnLOjHO2fWLvE2MYiJmQSI82n7WCoif00TqKI/cHuD1/bU/Oimz3h57b2J
FuQbZ9mX2SVwTnaOpGh3fdYD0i6O9DlabX5vzCa0fDQHR9/NSSVIoc6pkciL8d9n
QrvsSUKqkrvNSyEsalab4Hx7UOAbsjsNmkXVcXzkXlcmk7mLdxEkDZIYwQNDShyK
lwaxB+cKlHfmEhBCZzNiwjHja4cu6w5Vu5bF1Xall0dios1MG8YeyGfI2Xs0tpsQ
7AzUukT/+QbTguPTXocpSYpGVIoRA1gYCNyv0XhlI+S/ZHJVTtM=
=rEgz
-----END PGP SIGNATURE-----