Thread View: news.software.nntp
5 messages
5 total messages
Started by Scott Norwood
Sun, 01 Mar 1998 00:00
INN/suck - can read/can't post
Author: Scott Norwood
Date: Sun, 01 Mar 1998 00:00
Date: Sun, 01 Mar 1998 00:00
30 lines
1876 bytes
1876 bytes
For the last few days, I've been playing around with a "suck" newsfeed of a few (~10) rec.* groups using INN 1.5.1 and suck 3.9.1 running under Linux Sucking via crontab works fine, and I can read everything in the local spool without problem. I can also post locally. nntpsend, however, doesn't work. I've configured the "newsfeeds" file properly, but all the news servers that I have access to are giving me a "480 Authentication Required for Command" error (according to nntpsend -d) when it sends the "ihave" commands. Is there an alternative to the default nntpsend that doesn't require that the NNTP server accept "ihave" (maybe something that just uses "POST," like a newsreader would), or am I just SOL? Should I be using Cnews or Dnews instead of INN? (Every site that I know about is running INN or Netscape news.) I don't really need my own newsfeed, but I'd like to have the groups that I read regularly kept around with longer expire times than they are now (I much prefer "trn", "cat", and "grep" to Dejanews...). Thanks in advance! (I'm a bit of a clueless newbie when it comes to news administration, but I'm learning quickly--that INN FAQ is great.) -- Scott Norwood: snorwood@nyx.net, snorwood@redballoon.net, senorw@mail.wm.edu Cool Home Page: http://www.redballoon.net/ Lame Quote: Penguins? In Snack Canyon?
Re: INN/suck - can read/can't post
Author: Fluffy
Date: Sun, 01 Mar 1998 00:00
Date: Sun, 01 Mar 1998 00:00
131 lines
4416 bytes
4416 bytes
Scott Norwood <snorwood@redballoon.net> wrote:
: Is there an alternative to the default nntpsend that doesn't require that
: the NNTP server accept "ihave" (maybe something that just uses "POST,"
: like a newsreader would), or am I just SOL? Should I be using Cnews or
: Dnews instead of INN? (Every site that I know about is running INN or
: Netscape news.)
I believe that suck has an nntpsend substitute that will post. I know that
newsx (another suck-like program) does.
Though you probably won't need to use nntpsend/innxmit in your application,
here's a heinous little hack that will allow innxmit to post. This is far
from perfect, but it seemed to be okay for the brief time I used it. It'll
choke if your ISP rejects a user-supplied NNTP-Posting-Host instead of
accepting or quietly dropping it. If so, yank that stuff out of
nnrpd/post.c if it's just a personal spool, and let your ISP do the
stamping.
An added command-line flag, R, means "use POST instead of IHAVE." Why R?
All the good letters were taken.
~~~~~begin~~~~~
*** innxmit.c Mon Dec 8 18:48:50 1997
--- innxmit.c Wed Jan 14 15:34:37 1998
***************
*** 107,112 ****
--- 107,113 ----
STATIC BOOL Slavish;
STATIC BOOL STATprint;
STATIC BOOL Mime;
+ STATIC BOOL UsePOST = FALSE;
STATIC MIMEXFERTYPE MimeArticle = MTnotmime;
STATIC char *BATCHname;
STATIC char *BATCHtemp;
***************
*** 835,840 ****
--- 836,845 ----
case NNTP_TOOKIT_VAL:
STATaccepted++;
break;
+ case NNTP_POSTEDOK_VAL:
+ STATaccepted++;
+ break;
+ case NNTP_POSTFAIL_VAL:
case NNTP_REJECTIT_VAL:
if (logRejects)
syslog(L_NOTICE, REJECTED, REMhost,
***************
*** 1132,1138 ****
Usage()
{
(void)fprintf(stderr,
! "Usage: innxmit [-a] [-c] [-d] [-M] [-p] [-r] [-s] [-S] [-t#] [-T#] host file\n");
exit(1);
}
--- 1137,1143 ----
Usage()
{
(void)fprintf(stderr,
! "Usage: innxmit [-a] [-c] [-d] [-M] [-p] [-r] [-s] [-S] [-t#] [-T#] [R] host file\n");
exit(1);
}
***************
*** 1168,1174 ****
(void)umask(NEWSUMASK);
/* Parse JCL. */
! while ((i = getopt(ac, av, "lA:acdMprsSt:T:vP:")) != EOF)
switch (i) {
default:
Usage();
--- 1173,1179 ----
(void)umask(NEWSUMASK);
/* Parse JCL. */
! while ((i = getopt(ac, av, "lA:acdMprsSt:T:vP:R")) != EOF)
switch (i) {
default:
Usage();
***************
*** 1218,1223 ****
--- 1223,1231 ----
case 'v':
STATprint = TRUE;
break;
+ case 'R':
+ UsePOST = TRUE;
+ break;
}
ac -= optind;
av += optind;
***************
*** 1593,1599 ****
}
continue; /* next article */
}
! (void)sprintf(buff, "%s %s", Slavish ? "xreplic" : "ihave", MessageID);
if (!REMwrite(buff, (int)strlen(buff), FALSE)) {
(void)fprintf(stderr, "Can't offer article, %s\n",
strerror(errno));
--- 1601,1611 ----
}
continue; /* next article */
}
! if (UsePOST) {
! (void)sprintf(buff, "post");
! } else {
! (void)sprintf(buff, "%s %s", Slavish ? "xreplic" : "ihave", MessageID);
! }
if (!REMwrite(buff, (int)strlen(buff), FALSE)) {
(void)fprintf(stderr, "Can't offer article, %s\n",
strerror(errno));
***************
*** 1640,1645 ****
--- 1652,1661 ----
RequeueRestAndExit(Article, MessageID);
/* NOTREACHED */
case NNTP_SENDIT_VAL:
+ if (!REMsendarticle(Article, MessageID, qp))
+ RequeueRestAndExit(Article, MessageID);
+ break;
+ case NNTP_START_POST_VAL:
if (!REMsendarticle(Article, MessageID, qp))
RequeueRestAndExit(Article, MessageID);
break;
~~~~~end~~~~~
Re: INN/suck - can read/can't post
Author: Scott Norwood
Date: Sun, 01 Mar 1998 00:00
Date: Sun, 01 Mar 1998 00:00
15 lines
1080 bytes
1080 bytes
In article <slrn6fhdlj.dmk.world!flufster@world.std.com>,
Fluffy <world!flufster@uunet.uu.net> wrote:
>
>I believe that suck has an nntpsend substitute that will post. I know that
>newsx (another suck-like program) does.
Yep ("rpost")--it works great. I'm sending this message with it, in fact!
--
Scott Norwood: snorwood@nyx.net, snorwood@redballoon.net, senorw@mail.wm.edu
Cool Home Page: http://www.redballoon.net/
Lame Quote: Penguins? In Snack Canyon?
Re: INN/suck - can read/can't post
Author: Chris Gray
Date: Sat, 07 Mar 1998 00:00
Date: Sat, 07 Mar 1998 00:00
30 lines
1592 bytes
1592 bytes
How did you get rpost to flush to spool file? rpost worked fine for me but
left the message id in the outgoing spool. ctlinnd flush wouldnt take it out,
so when rpost was run again, it would say duplicate message. this is ok, i
suppose, but i'd rather not have the outgoing spool fill up.
Any ideas?
Thanks,
Chris
In article <6daqui$nno$1@red.redballoon.net>, snorwood@redballoon.net says...
>
>In article <slrn6fhdlj.dmk.world!flufster@world.std.com>,
>Fluffy <world!flufster@uunet.uu.net> wrote:
>>
>>I believe that suck has an nntpsend substitute that will post. I know that
>>newsx (another suck-like program) does.
>
>Yep ("rpost")--it works great. I'm sending this message with it, in fact!
>
>--
>Scott Norwood: snorwood@nyx.net, snorwood@redballoon.net, senorw@mail.wm.edu
>Cool Home Page: http://www.redballoon.net/
>Lame Quote: Penguins? In Snack Canyon?
Re: INN/suck - can read/can't post
Author: Chris Gray
Date: Sat, 07 Mar 1998 00:00
Date: Sat, 07 Mar 1998 00:00
27 lines
1342 bytes
1342 bytes
Never mind, I found it. -d option.
RTFM works everytime.
Thanks,
Chris
In article <6daqui$nno$1@red.redballoon.net>, snorwood@redballoon.net says...
>
>In article <slrn6fhdlj.dmk.world!flufster@world.std.com>,
>Fluffy <world!flufster@uunet.uu.net> wrote:
>>
>>I believe that suck has an nntpsend substitute that will post. I know that
>>newsx (another suck-like program) does.
>
>Yep ("rpost")--it works great. I'm sending this message with it, in fact!
>
>--
>Scott Norwood: snorwood@nyx.net, snorwood@redballoon.net, senorw@mail.wm.edu
>Cool Home Page: http://www.redballoon.net/
>Lame Quote: Penguins? In Snack Canyon?
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