J
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 StringIO, then i can
not post messages and i get the above error message. Where is the
problem?
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.5/nntplib.py", line 570, in post
return self.getresp()
File "/usr/lib/python2.5/nntplib.py", line 219, in getresp
raise NNTPTemporaryError(resp)
nntplib.NNTPTemporaryError: 441 Article has no body -- just headers'From: (e-mail address removed)\nSubject: testing\nNewsgroups: test\nBody:
\n\n\nfoobar\n\n\n.\n\n\n'
'From: (e-mail address removed)\nSubject: testing\nNewsgroups: test\nBody:
\n\n\nfoobar\n\n\n.\n\n\n''From: (e-mail address removed)\nSubject: testing\nNewsgroups: test\nBody:
\n\n\nfoobar\n\n\n.\n\n\n'.... print 'true'
....
true
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 StringIO, then i can
not post messages and i get the above error message. Where is the
problem?
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.5/nntplib.py", line 570, in post
return self.getresp()
File "/usr/lib/python2.5/nntplib.py", line 219, in getresp
raise NNTPTemporaryError(resp)
nntplib.NNTPTemporaryError: 441 Article has no body -- just headers'From: (e-mail address removed)\nSubject: testing\nNewsgroups: test\nBody:
\n\n\nfoobar\n\n\n.\n\n\n'
'From: (e-mail address removed)\nSubject: testing\nNewsgroups: test\nBody:
\n\n\nfoobar\n\n\n.\n\n\n''From: (e-mail address removed)\nSubject: testing\nNewsgroups: test\nBody:
\n\n\nfoobar\n\n\n.\n\n\n'.... print 'true'
....
true