Thread View: news.software.readers
9 messages
9 total messages
Started by Robert Nagy
Wed, 18 Aug 1993 09:20
Tin 1.21 Error Message On Post
Author: Robert Nagy
Date: Wed, 18 Aug 1993 09:20
Date: Wed, 18 Aug 1993 09:20
11 lines
1217 bytes
1217 bytes
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. I have compiled the system to run under Linux 0.99p9 I added the -DHAVE_ISPELL and that is it. Any clues as to what could be wrong with my tin? I got the sources from uu.net today Robert Nagy
Re: Tin 1.21 Error Message On Post
Author: 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
Re: Tin 1.21 Error Message On Post
Author: David C Lawrence
Date: Wed, 18 Aug 1993 13:44
Date: Wed, 18 Aug 1993 13:44
20 lines
1702 bytes
1702 bytes
In <CByCDM.LLC@info.bris.ac.uk> ccpes@sun.cse.bris.ac.uk (PE. Smee) writes:
> 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 [...]
>
> I don't want to hack with inews -- even though it's probably its fault [...]
This is most certainly tin's problem, not inews's fault. It is
standard behaviour for a UNIX programme to exit with a zero status if
it succeeded in doing what was asked, and a non-zero status otherwise.
Your fix to return "NOT exit_status" was not a kludge, but the right
thing to do given that submit_file() was expected to return non-zero
if it was successful.
David
Re: Tin 1.21 Error Message On Post
Author: PE. Smee
Date: Wed, 18 Aug 1993 14:17
Date: Wed, 18 Aug 1993 14:17
20 lines
1916 bytes
1916 bytes
In article <24tbnr$93r@news.uu.net>, David C Lawrence <tale@ten.uu.net> wrote:
>
>This is most certainly tin's problem, not inews's fault. It is
>standard behaviour for a UNIX programme to exit with a zero status if
>it succeeded in doing what was asked, and a non-zero status otherwise.
>Your fix to return "NOT exit_status" was not a kludge, but the right
>thing to do given that submit_file() was expected to return non-zero
>if it was successful.
Well, philosophically speaking, true. On the other hand, the
'as-shipped' version of tin works (with the NNTP C-language inews) on
the other half dozen or so machines I've just put readers up on; and I
don't feel sufficiently spare-timeish to investigate whether this
change (which does feel right) would break them. Specially since, if
it didn't break them, I'd feel compelled to rebuild and reinstall them
all just to make sure I had everything in sync. :-)
--
Paul Smee, Computing Service, University of Bristol, Bristol BS8 1UD, UK
P.Smee@bristol.ac.uk - Tel +44 272 303132 - FAX +44 272 291576
Re: Tin 1.21 Error Message On Post
Author: Wuxu Peng
Date: Wed, 18 Aug 1993 17:23
Date: Wed, 18 Aug 1993 17:23
31 lines
2065 bytes
2065 bytes
PE. Smee (ccpes@sun.cse.bris.ac.uk) wrote:
: 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.
[others omitted]
This also happens on my machine, which has INN as ther NNTP server.
So it is not CNEWS only problem.
--
--wuxu peng (peng@pirates.cs.swt.edu)
Re: Tin 1.21 Error Message On Post
Author: Pope Clifton
Date: Thu, 19 Aug 1993 04:51
Date: Thu, 19 Aug 1993 04:51
30 lines
2134 bytes
2134 bytes
PE. Smee (ccpes@sun.cse.bris.ac.uk) wrote: : 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 : 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 ... using, the inews script which comes with : the Cnews distribution. .. : 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. That is the correct fix. Iain posted it, with apologies, a day or two after the 1.21 patch. Sorry for those that missed it... If anyone needs the patch, I can post it, but it's really a one-liner as described above. -- Clifton -- cliftonr@netcom.com is Clifton Royston is Pope of the Church of the Subgenius in Paradise is a happily married man is a programmer is a structural fiction. "I just can't speculate," Reichard was quoted as saying, "ever since I lost my parietal lobe in a freak TV accident in the third grade." (william reichard)
Re: Tin 1.21 Error Message On Post
Author: Chris Teakle
Date: Fri, 20 Aug 1993 10:08
Date: Fri, 20 Aug 1993 10:08
43 lines
2252 bytes
2252 bytes
ccpes@sun.cse.bris.ac.uk (PE. Smee) writes: >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?) You needn't mail Iain - it's a known bug, for which Iain posted a fix last month. Here's the relevant portion of his message: >From: iain.lea@anl433.erlm.siemens.de (Iain Lea) >Newsgroups: news.software.readers >Subject: Tin v1.2 PL1 bugs & misc >Date: 15 Jul 1993 11:51:53 GMT >Message-ID: <223gcp$s2e@Germany.EU.net> > >Just a short note to report on the initial minor buglets >and other misc. stuff in yesterdays release+workarounds. > > ... > >3. When using an external inews is causing an error > message to be printed after an article is *correctly* > posted. > FIX. Change the following line at the end of inews.c > ret_code = (invoke_cmd (buf) ? 0 : 1); > To > ret_code = invoke_cmd (buf); ---- Chris Teakle Prentice Centre, University of Queensland, Australia
Re: Tin 1.21 Error Message On Post
Author: PE. Smee
Date: Fri, 20 Aug 1993 13:52
Date: Fri, 20 Aug 1993 13:52
11 lines
1274 bytes
1274 bytes
In article <2527qt$nn0@brolga.cc.uq.oz.au>,
>You needn't mail Iain - it's a known bug, for which Iain posted a fix
>last month.
Thanks for the info. I knew last month that I was going to be building
half a dozen tins this week, and so tried to save all the relevant tin
bug postings from in here, but I obviously missed that one somehow.
Sigh...
--
Paul Smee, Computing Service, University of Bristol, Bristol BS8 1UD, UK
P.Smee@bristol.ac.uk - Tel +44 272 303132 - FAX +44 272 291576
Re: Tin 1.21 Error Message On Post
Author: Robert Nagy
Date: Fri, 20 Aug 1993 14:54
Date: Fri, 20 Aug 1993 14:54
21 lines
1551 bytes
1551 bytes
Chris Teakle (ccteakle@brolga.cc.uq.oz.au) wrote:
> ccpes@sun.cse.bris.ac.uk (PE. Smee) writes:
> > FIX. Change the following line at the end of inews.c
> > ret_code = (invoke_cmd (buf) ? 0 : 1);
> > To
> > ret_code = invoke_cmd (buf);
Thanks for posting that. My was was to hack the post.c file and put a
!submit_file in 4 different places.
I have to learn to read C Code better. :)
Robert
btw, the patch works purfectly.
--
==========================================================================
1993 Harley Davidson Fatboy - The Wind Beneath My Wings
nagy@turtle.apana.org.au
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads