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

2009-06-04 Thread Jon Bendtsen
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 head

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

2009-06-04 Thread Jon Bendtsen
ont 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 -- http://mail.python.org/mailman/listinfo/python-list

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

2009-05-28 Thread Jon Bendtsen
Dennis Lee Bieber wrote: > On Wed, 27 May 2009 14:25:58 +0200, Jon Bendtsen > declaimed the following in gmane.comp.python.general: > >> 'From: r...@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 termina

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

2009-05-27 Thread Jon Bendtsen
Hi I'm trying to expand cvsmail.py so it posts to newsgroups, but i constantly get this error message: nntplib.NNTPTemporaryError: 441 Article has no body -- just headers If i put the test message into a file then i can post it just fine, no problems. But if i put the message into a Str