Article View: news.software.readers
Article #5330Re: Tin 1.21 Error Message On Post
From: PE. Smee
Date: Wed, 18 Aug 1993 11:10
Date: Wed, 18 Aug 1993 11:10
43 lines
2885 bytes
2885 bytes
In article <1993Aug18.092022.23155@turtle.apana.org.au>,
Robert Nagy <nagy@turtle.apana.org.au> wrote:
>When I post an article all seems to go smoothly except I get an error message
>which says Article Rejected saved in /home/nagy/dead.article
>
>Why? It seems to get posted to the net ok? It arrives in the cnews togo
>file. But for some reason I get that message.
By absolute (but amazing) coincidence, I've just finished hacking away
at exactly that same problem, and was about to bug-report it to Iain.
(Iain, you there? Do I still need to mail you?)
Problem occurs if you are building tin 1.21 to run on the news server
machine, so that you are accessing the news directly rather than via
NNTP, and you are using, therefore, the inews script which comes with
the Cnews distribution. (This may not be the only case, but it's a
representative one.)
This Cnews script inews returns 1 ('exit 1') if anything goes wrong,
and 0 ('exit 0') if it works -- as does injnews, which it execs at the
end.
The tin function 'submit_file' (in Tin's 'inews.c' which is a handle
out to real inews) returns this code in turn to post.c, which is where
it was called from. All 5 places in post.c from which submit_file is
called assume that if submit_file returns a '0', it failed, and that
otherwise it worked -- which is precisely the opposite of what the
Cnews inews script does.
I don't want to hack with inews -- even though it's probably its fault
-- since trn shares the inews script on that machine. So, as a quick
and dirty hack I simply modified submit_file in Tin's inews.c to return
!retcode rather than retcode.
(I recognise that that's less than ideal, as it means that I've now got
different source on that system than I use on all the NNTP clients, but
hey, it works. I've really got limited time to spend supporting the
offending copy of tin, as that machine only has about a dozen
registered users on it anyway.)
--
Paul Smee, Computing Service, University of Bristol, Bristol BS8 1UD, UK
P.Smee@bristol.ac.uk - Tel +44 272 303132 - FAX +44 272 291576
Technical Details
Message-ID:
<CByCDM.LLC@info.bris.ac.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!yale.edu!spool.mu.edu!agate!doc.ic.ac.uk!warwick!bsmail!ccpesReferences:
<1993Aug18.092022.23155@turtle.apana.org.au>Show Full Headers
Complete Article Headers
Message-ID: <CByCDM.LLC@info.bris.ac.uk> Subject: Re: Tin 1.21 Error Message On Post Date: Wed, 18 Aug 1993 11:10:33 GMT From: ccpes@sun.cse.bris.ac.uk (PE. Smee) References: <1993Aug18.092022.23155@turtle.apana.org.au> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!yale.edu!spool.mu.edu!agate!doc.ic.ac.uk!warwick!bsmail!ccpes Newsgroups: news.software.readers Sender: usenet@info.bris.ac.uk (Usenet news owner) Nntp-Posting-Host: sun.cse.bris.ac.uk Reply-To: P.Smee@bristol.ac.uk (Paul Smee) Organization: University of Bristol Lines: 43