nntplib.NNTPTemporaryError: 441 Article has no body -- just headers

Jon Bendtsen noone at example.com
Thu Jun 4 13:30:35 CEST 2009


Jon Bendtsen wrote:
> Dennis Lee Bieber wrote:
>> On Wed, 27 May 2009 14:25:58 +0200, Jon Bendtsen <noone at example.com>
>> declaimed the following in gmane.comp.python.general:
>>
>>> 'From: root at laerdal.dk\nSubject: testing\nNewsgroups: test\nBody:
>>> \n\n\nfoobar\n\n\n.\n\n\n'
>>>
>> 	I believe NNTP, like SMTP, requires \r\n line termination.
> 
> I will try it, but why does it then work when it posts the file? The
> file is a std. unix file, so it should also only have \n line
> termination.

I have now tried adding \r infront of all \n. That didnt help.

I tried making a tempfile.TemporaryFile(dir='/tmp') which did not
work either. Message is still:

nntplib.NNTPTemporaryError: 441 Article has no body -- just headers



More information about the Python-list mailing list