chiark / gitweb /
Found in chiark:/etc/userv/services.d/newsrc-listgroups
authorian <ian>
Tue, 9 Nov 1999 21:13:31 +0000 (21:13 +0000)
committerian <ian>
Tue, 9 Nov 1999 21:13:31 +0000 (21:13 +0000)
newsrc-lg/services [new file with mode: 0644]

diff --git a/newsrc-lg/services b/newsrc-lg/services
new file mode 100644 (file)
index 0000000..c1da154
--- /dev/null
@@ -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