summaryrefslogtreecommitdiff
path: root/sfeed_curses.1
diff options
context:
space:
mode:
authorAlvar Penning <post@0x21.biz>2023-04-24 22:01:23 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2023-05-07 13:22:55 +0200
commit6e4136753bd0faa15c198118b05c529d96d908c5 (patch)
tree4a662d2e64cf0757e3b2bcb4f90fdccd229488bc /sfeed_curses.1
parentaed47142611e23b363298bbb534c5cc4bd11a86b (diff)
sfeed_{curses,frames,gopher,html,plain}: SFEED_NEW_MAX_SECS
By introducing the new environment variable $SFEED_NEW_MAX_SECS in all sfeed_* utilities marking feeds as new based on comparing their age, it is now possible to override this age limit. This allows, for example, to be notified about new feeds within the last hour with SFEED_NEW_MAX_SECS=3600 sfeed_plain ~/.sfeed/feeds/* while creating a beautiful web report for last week's news by SFEED_NEW_MAX_SECS=604800 sfeed_html ~/.sfeed/feeds/*
Diffstat (limited to 'sfeed_curses.1')
-rw-r--r--sfeed_curses.14
1 files changed, 4 insertions, 0 deletions
diff --git a/sfeed_curses.1 b/sfeed_curses.1
index 94ffd4c..b3cccf2 100644
--- a/sfeed_curses.1
+++ b/sfeed_curses.1
@@ -30,6 +30,7 @@ arguments are specified then the data is read from stdin and the feed name is
.Pp
Items with a timestamp from the last day compared to the system time at the
time of loading the feed are marked as new and bold.
+This value might be overridden through environment variables.
There is also an alternative mode available to mark items as read by matching
it against a list of URLs from a plain-text file.
Items with an enclosure are marked with a @ symbol.
@@ -207,6 +208,9 @@ SIGWINCH.
Read and process a sequence of keys as input commands from this environment
variable first, afterwards it reads from the tty as usual.
This can be useful to automate certain actions at the start.
+.It Ev SFEED_NEW_MAX_SECS
+Overwrite the maximum age in seconds to mark feeds as new.
+By default this is 86400, which equals one day.
.It Ev SFEED_PIPER
A program where the whole TAB-Separated Value line is piped to.
By default this is "sfeed_content".