Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Our cache should refer to the feed from which it came. #82

@skx

Description

@skx

As noted in #80 we currently maintain a local cache of the feed-items which have been seen, but we do that globally:

Having our record of seen-items be prefixed with the source-feed from which it came would be very useful. It would allow removing all state-files when an URL was removed, for example.

To resolve this issue we need to do two things:

  • Continue writing our state to ~/.rss2email/state/$file.
  • But also write to ~/.rss2email/seen/$feed/$file
    • Where $feed is some kind of normalized feed-URL representation.

We then expire things in both locations. After this has been released in the wild for "a while" we can drop the /state directory and avoid losing track of seen vs. unseen items.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions