nntplib
index
/usr/lib/python1.5/nntplib.py
 

# An NNTP client class.  Based on RFC 977: Network News Transfer
# Protocol, by Brian Kantor and Phil Lapsley.

   
Modules
                        
re
socket
string

   
Classes
                        
NNTP

   
class NNTP
              
__init__(self, host, port=119, user=None, password=None)
artcmd(self, line)
article(self, id)
body(self, id)
date(self)
set_debuglevel(self, level)
getline(self)
getlongresp(self)
getresp(self)
getwelcome(self)
group(self, name)
head(self, id)
help(self)
ihave(self, id, f)
last(self)
list(self)
longcmd(self, line)
newgroups(self, date, time)
newnews(self, group, date, time)
next(self)
post(self, f)
putcmd(self, line)
putline(self, line)
quit(self)
set_debuglevel(self, level)
shortcmd(self, line)
slave(self)
stat(self, id)
statcmd(self, line)
statparse(self, resp)
xgtitle(self, group)
xhdr(self, hdr, str)
xover(self, start, end)
xpath(self, id)

   
Constants
                        
CRLF = '\015\012'
LONGRESP = ['100', '215', '220', '221', '222', '224', '230', '231', '282']
NNTP_PORT = 119
error_data = 'nntplib.error_data'
error_perm = 'nntplib.error_perm'
error_proto = 'nntplib.error_proto'
error_reply = 'nntplib.error_reply'
error_temp = 'nntplib.error_temp'