Article View: news.software.nntp
Article #83333Re: Empty Articles
From: Julien ÉLIE
Date: Sun, 01 Aug 2010 13:47
Date: Sun, 01 Aug 2010 13:47
72 lines
3459 bytes
3459 bytes
Hi Steve,
> I'm using Python's nntplib to inject articles to three newsservers (via
> IHAVE). Glorb always accepts them but Altopia and Mixmin reject them
> for having no body. Following some diagnosis and assistance from Russ,
> it appears that nntplib converts /n to /r/n so I'm at a loss as to why
> these articles are getting rejected by newer INN versions.
#!/usr/bin/python
import nntplib
server = nntplib.NNTP('news.trigofacile.com')
server.set_debuglevel(2)
file = open('/home/news/test-article')
server.ihave('<test@test>', file)
file.close()
server.quit()
It works fine with me. Article properly posted.
Python 2.4.4 and latest version of INN (CURRENT 2.6.0).
Note that if I run unix2dos on /home/news/test-article, I receive the
following error:
nntplib.NNTPTemporaryError: 437 No body
Are you sure the articles you try to inject contain mere "\n" (LF)?
An interesting option is server.set_debuglevel(2), which gives:
*put* 'Xref: news.trigofacile.com trigofacile.test:392\r\r\n'
*put* '\r\r\n'
*put* 'pouet\r\r\n'
*put* '.\r\n'
*get* '437 No body\r\n'
*resp* '437 No body'
INN looks for "\r\n\r\n" to start a body. It never saw one here.
> 2010-08-01 06:02:37 3586 INFO
> <20100801050235.5LZ2QxzF81oa@nymserv.mixmin.net> successful
> IHAVE to news.glorb.com.
> 2010-08-01 06:02:38 3586 INFO IHAVE to newsin.alt.net returned a
> temporary error: 437 No body.
> 2010-08-01 06:02:38 3586 INFO IHAVE to localhost returned a temporary
> error: 437 Empty article.
I bet you're testing three different versions of INN :-)
A commit which may have changed something here:
http://inn.eyrie.org/trac/changeset/8682
Fix a bug when articles were fed to innd via IHAVE or TAKETHIS
with an empty article: the article terminator was not recognized.
Therefore, subsequent NNTP commands were eaten inside the article...
--
Julien ÉLIE
« Se coucher tard... nuit. » (Raymond Devos)
Technical Details
Message-ID:
<i33tu3$mpd$1@news.trigofacile.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.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!.POSTED.amontpellier-159-1-11-82.w90-57.abo.wanadoo.fr!not-for-mailReferences:
<slrni5aq76.mt9.steve@news.mixmin.net>Show Full Headers
Complete Article Headers
Message-ID: <i33tu3$mpd$1@news.trigofacile.com> Subject: Re: Empty Articles Date: Sun, 1 Aug 2010 15:47:47 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <slrni5aq76.mt9.steve@news.mixmin.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!.POSTED.amontpellier-159-1-11-82.w90-57.abo.wanadoo.fr!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 72 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 8bit Injection-Date: Sun, 1 Aug 2010 13:47:47 +0000 (UTC) Injection-Info: news.trigofacile.com; posting-host="amontpellier-159-1-11-82.w90-57.abo.wanadoo.fr:90.57.82.82"; logging-data="23341"; mail-complaints-to="abuse@trigofacile.com" In-Reply-To: <slrni5aq76.mt9.steve@news.mixmin.net> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6002.18197 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18197 X-Original-Bytes: 3294