summaryrefslogtreecommitdiff
path: root/sfeed_plain.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_plain.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_plain.1')
-rw-r--r--sfeed_plain.17
1 files changed, 7 insertions, 0 deletions
diff --git a/sfeed_plain.1 b/sfeed_plain.1
index 466ae41..93ed41d 100644
--- a/sfeed_plain.1
+++ b/sfeed_plain.1
@@ -26,6 +26,7 @@ is empty.
.Pp
Items with a timestamp from the last day compared to the system time at the
time of formatting are marked as new.
+This value might be overridden through environment variables.
Items are marked as new with the prefix "N" at the start of the line.
.Pp
.Nm
@@ -39,6 +40,12 @@ per rune, using
.Xr mbtowc 3
and
.Xr wcwidth 3 .
+.Sh ENVIRONMENT VARIABLES
+.Bl -tag -width Ds
+.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.
+.El
.Sh EXIT STATUS
.Ex -std
.Sh EXAMPLES