[3177] in SIPB bug reports
nntpfetch: empty file when zero articles in group
daemon@ATHENA.MIT.EDU (mhpower@Athena.MIT.EDU)
Thu Sep 17 15:00:39 1992
From: mhpower@Athena.MIT.EDU
To: bug-sipb@Athena.MIT.EDU
Date: Thu, 17 Sep 92 14:59:43 EDT
The current version of nntpfetch seems to create empty files in at
least one context in which the previous version didn't:
% echo 'news.announce.important:' > /usr/tmp/test-newsrc
% /afs/sipb/contrib/perl/nntpfetch -n -u -o nai -F /usr/tmp/test-newsrc -U -S news.mit.edu news.announce.important
Saving news.announce.important: in file: nai.1
The file nai.1 is of zero length.
(The previous version printed an error message "No articles matched."
and terminated, which I believe is the correct behavior.)
Currently:
% telnet news 119
group news.announce.important
211 0 0 0 news.announce.important
I call nntpfetch from a larger script, and can easily work around this
problem by testing for zero-length files there.
Matt