Git Product home page Git Product logo

Comments (20)

themoken avatar themoken commented on July 16, 2024

The option is "defaults.keep_unread" (note the s on defaults) and can be queried with ":set defaults.keep_unread" or set by giving that an argument (True/False). The option should still be honored, and if you run the daemon with -v, it should print "Keeping unread item: [id]" to the log if the item would've been discarded otherwise.

I'll check it out.

from canto-next.

themoken avatar themoken commented on July 16, 2024

Seems to be working here... did you have the right option set?

from canto-next.

Narrat avatar Narrat commented on July 16, 2024

"defaults": {
"global_transform": "filter_read",
"keep": "2000",
"keep_unread": true,
"rate": 100
}

I'm waiting for the result with verbose daemon.

But since I upgraded from 0.8.x to 0.9 I lost everything that was kept and since then I only have the stuff that's available from the feed. Like 40 of the most recent posts. Stuff that's discarded from the feed is vanishing in canto (dunno how to describe that properly)

Edit: For example techdirt.com (http://feeds.feedburner.com/techdirt/feed). They keep 25 posts. I just have those 25, but didn't read an article for some days

from canto-next.

Narrat avatar Narrat commented on July 16, 2024

Hrm.. reading through the log. It clearly says keeping unread items

But I stumpled upon keep_time messages. Does that mean, the keep is setting a time after which they get discarded? I thought this is setting the number of items kept (Dunno why I set this and when. Maybe there were a problem I thought this would fix it and forgot it after that)

Curious is still the fact that I just have the most recent articles from the feed

from canto-next.

themoken avatar themoken commented on July 16, 2024

"keep" hasn't existed since sometime in 0.8.x I believe, it was replaced with "keep_time" which specifies the number of seconds between an item disappearing from the feed and the daemon being allowed to get rid of it. It defaults to 86400, so items will be kept for a full day after they're no longer in the feed.

from canto-next.

Narrat avatar Narrat commented on July 16, 2024

keep_time came with 0.9? Or existed previously? Unread stuff was kept forever with 0.8 (and thats what I want).

Ok, so removing the keep option. And replacing it with keep_time. Any limit for setting the number? Or is there a valid replacement for "keep forever"?

from canto-next.

themoken avatar themoken commented on July 16, 2024

keep was switched to keep_time right before the 0.8.2 release of the daemon.

keep_unread takes priority over keep_time, so unread items will be kept forever. For read items, keep_time has no upper limit but there's no setting for "forever"

from canto-next.

Narrat avatar Narrat commented on July 16, 2024

And now we're back at the beginning :D I'm at a loss now.

Could my setup be a problem? The daemons runs locally and as such just when this machine is running.
If the daemon fires up and do whatever it does and checks if the feed-item is overdue (keep_time) but ignoring keep_unread then?

Anyway. I will look again at it. When this problem is appearing. And what's happening if the daemon is running some time.
I noticed this just with a new daemon session everytime. Dunno about longtime runs and such.

from canto-next.

themoken avatar themoken commented on July 16, 2024

The same mechanism is used to populate feeds from the net as well as disk so initialization shouldn't be a problem.

Yeah, let me know if you can get a log when you see the behavior. canto-curses also takes -v and might be helpful as well.

from canto-next.

themoken avatar themoken commented on July 16, 2024

Also, to be clear, they disappear from canto-curses, but they don't return if you restart c-c or trigger an update (\ or F5) or refresh (C-r)?

from canto-next.

Narrat avatar Narrat commented on July 16, 2024

No, refreshing and updating and restarting doesn't help in that case. I still just see the feeds that are available from the feed, no more when there should be more.

from canto-next.

Narrat avatar Narrat commented on July 16, 2024

Hmm. Found entries in the log where it says, that it's keeping unread item x (example from july 2014 (clearly over keep_time)), but it isn't shown in curses.
Could be the filter_read the culprit?

from canto-next.

themoken avatar themoken commented on July 16, 2024

That could be a lot of different things. Could you post your logs, or email them to me ([email protected])?

from canto-next.

Narrat avatar Narrat commented on July 16, 2024

I emailed them

from canto-next.

Narrat avatar Narrat commented on July 16, 2024

Next try in emailing it. Came back. SOmething went wrong with copy and paste from FF to TB...

from canto-next.

Narrat avatar Narrat commented on July 16, 2024

Ok and now some observations.
Starting daemon, fetching stuff. Every new feed-item will be appended. This persists between canto-curses sessions. (example one went from 40 to 41 (and they hold 40 items in the feed)). Quited curses, started again and still 41
canto-remote kill and started a new daemon session. Started curses and the items were again 40 (40 items from the feed)

from canto-next.

Narrat avatar Narrat commented on July 16, 2024

Ok, I will upload those to gist.
G-Mail rejects me :P
550-5.7.1 [2607:f2e0:f:4d5::2 12] Our system has detected that this message
550-5.7.1 is likely unsolicited mail. To reduce the amount of spam sent to
550-5.7.1 Gmail, this message has been blocked.

Daemon log https://gist.github.com/Narrat/05795145c3cc1f9c67ea/raw/daemon%20log
Curses log https://gist.github.com/Narrat/05795145c3cc1f9c67ea#file-curses-log

from canto-next.

themoken avatar themoken commented on July 16, 2024

Can you try this daemon patch?

https://gist.github.com/themoken/63f7eed82add3a018972

from canto-next.

themoken avatar themoken commented on July 16, 2024

Actually fairly certain that patch is the fix (it resurrected some items here), so it's also in git now. Let me know if it works.

from canto-next.

Narrat avatar Narrat commented on July 16, 2024

Yes, it's working again.

Thanks for the fix

from canto-next.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.