summaryrefslogtreecommitdiff
path: root/newsrc-lg
diff options
context:
space:
mode:
authorian <ian>1999-11-09 21:13:31 +0000
committerian <ian>1999-11-09 21:13:31 +0000
commit2b43f1c1235d880beec81245c12607945d1eda0e (patch)
tree2037cf3a794334b2a315cb9ef0fa6ac20b7a2911 /newsrc-lg
parent45e019f41fc94ae17fd3001bb777f6adc4c3f08f (diff)
downloaduserv-utils-2b43f1c1235d880beec81245c12607945d1eda0e.tar.gz
Found in chiark:/etc/userv/services.d/newsrc-listgroups
Diffstat (limited to 'newsrc-lg')
-rw-r--r--newsrc-lg/services22
1 files changed, 22 insertions, 0 deletions
diff --git a/newsrc-lg/services b/newsrc-lg/services
new file mode 100644
index 0000000..c1da154
--- /dev/null
+++ b/newsrc-lg/services
@@ -0,0 +1,22 @@
+#
+# Every user's newsrc is checked by the newsrc-listgroups program
+# and if it hasn't got too many groups in it, they will be fetched.
+#
+# The service should spit out a list of legal newsgroup names,
+# and will always be invoked by something in group news.
+
+reset
+no-set-environment
+suppress-args
+ignore-fd 0
+
+if ! glob calling-group news
+ error Sorry (caller).
+fi
+if ! grep service-user-shell /etc/shells
+ message Warning - newsrc-listgroups for user whose shell not in shells
+ execute /bin/true
+ quit
+fi
+
+execute /usr/local/lib/news/feed+read/newsrc-listgroups /etc/news/nntp-merge.conf