🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #71819

Re: NNTP posting headers...

#71819
From: John Smith
Date: Sat, 11 Jun 2005 01:11
52 lines
2800 bytes
Russ:

Here is the code, it reads the headers I gave in previous post, from a 
file, drops the lf which fgets() returns and appends the cr-lf 
combination:

 while(!feof(f))
      {
      fgets(s, 1024, f);      // read header/msg line
      s[(strlen(s) - 1)] = 0; // drop lf
      strcat(s, "\r\n");      // append cr-lf
      snd(s);                 // send line to news server
      }

Warmest regards,
John

"Russ Allbery" <rra@stanford.edu> wrote in message 
news:874qc53ex8.fsf@windlord.stanford.edu...
> John Smith <assemblywizard@gmail.com> writes:
>
>> I am trying to write a simple newsreader/poster...
>> I am having trouble posting, and keep returning the error:
>
>> 441 Posting Failed (Required "From" header is missing)
>
>> ... from the news server.
>
>> I am using a header/msg in the format of:
>> From: assemblywizard@gmail.COM (someguy)
>> Path: gmail!assemblywizard
>> Newsgroups: alt.test.testing
>> Subject: Usenet Etiquette -- Please Read
>> Message-ID: <0293484875@gmail.COM>
>> Date: Fri, 10 Jun 2005 23:00:00 GMT
>> Organization: w.w.o.c.w.
>
>> The body of the message comes here, after a blank line.
>
>> Anyone know how to correct this, and get it to send.
>
> Make sure that your lines end in CRLF, not any other line ending
> convention.
>
> -- 
> Russ Allbery (rra@stanford.edu) 
> <http://www.eyrie.org/~eagle/>
>
>          Please post questions rather than mailing me directly.
>     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why. 

Technical Details
Message-ID: <NSqqe.2929$DA5.4616216@news.sisna.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!news-feed01.roc.ny.frontiernet.net!nntp.frontiernet.net!news.sisna.com!not-for-mail
References: <W%pqe.2023$Q_3.4102173@news.sisna.com> <874qc53ex8.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <NSqqe.2929$DA5.4616216@news.sisna.com>
Subject: Re: NNTP posting headers...
Date: Fri, 10 Jun 2005 18:11:08 -0700
From: "John Smith" <assemblywizard@gmail.com>
References: <W%pqe.2023$Q_3.4102173@news.sisna.com> <874qc53ex8.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!news-feed01.roc.ny.frontiernet.net!nntp.frontiernet.net!news.sisna.com!not-for-mail
Reply-To: "John Smith" <assemblywizard@gmail.com>
Newsgroups: news.software.nntp
Lines: 52
Organization: W.W.O.C.W.
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 66.81.49.22
X-Complaints-To: newsabuse@ikano.com
X-Trace: news.sisna.com 1118452269 66.81.49.22 (Fri, 10 Jun 2005 19:11:09 MDT)
NNTP-Posting-Date: Fri, 10 Jun 2005 19:11:09 MDT
X-Received-Date: Fri, 10 Jun 2005 19:11:09 MDT (news.sisna.com)