|
__init__(self,
host,
port=119,
user=None,
password=None,
readermode=None,
usenetrc=True)
Initialize an instance. |
|
|
|
getwelcome(self)
Get the welcome message from the server (this is read and squirreled
away by __init__()). |
|
|
|
|
|
debug(self,
level)
Set the debugging level. |
|
|
|
putline(self,
line)
Internal: send one line to the server, appending CRLF. |
|
|
|
putcmd(self,
line)
Internal: send one command to the server (through putline()). |
|
|
|
getline(self)
Internal: return one line from the server, stripping CRLF. |
|
|
|
getresp(self)
Internal: get a response from the server. |
|
|
|
getlongresp(self,
file=None)
Internal: get a response plus following text from the server. |
|
|
|
shortcmd(self,
line)
Internal: send a command and get the response. |
|
|
|
longcmd(self,
line,
file=None)
Internal: send a command and get the response plus following text. |
|
|
|
newgroups(self,
date,
time,
file=None)
Process a NEWGROUPS command. |
|
|
|
newnews(self,
group,
date,
time,
file=None)
Process a NEWNEWS command. |
|
|
|
list(self,
file=None)
Process a LIST command. |
|
|
|
description(self,
group)
Get a description for a single group. |
|
|
|
descriptions(self,
group_pattern)
Get descriptions for a range of groups. |
|
|
|
group(self,
name)
Process a GROUP command. |
|
|
|
help(self,
file=None)
Process a HELP command. |
|
|
|
statparse(self,
resp)
Internal: parse the response of a STAT, NEXT or LAST command. |
|
|
|
statcmd(self,
line)
Internal: process a STAT, NEXT or LAST command. |
|
|
|
stat(self,
id)
Process a STAT command. |
|
|
|
next(self)
Process a NEXT command. |
|
|
|
last(self)
Process a LAST command. |
|
|
|
artcmd(self,
line,
file=None)
Internal: process a HEAD, BODY or ARTICLE command. |
|
|
|
head(self,
id)
Process a HEAD command. |
|
|
|
body(self,
id,
file=None)
Process a BODY command. |
|
|
|
article(self,
id)
Process an ARTICLE command. |
|
|
|
slave(self)
Process a SLAVE command. |
|
|
|
xhdr(self,
hdr,
str,
file=None)
Process an XHDR command (optional server extension). |
|
|
|
xover(self,
start,
end,
file=None)
Process an XOVER command (optional server extension) Arguments: |
|
|
|
xgtitle(self,
group,
file=None)
Process an XGTITLE command (optional server extension) Arguments: |
|
|
|
xpath(self,
id)
Process an XPATH command (optional server extension) Arguments: |
|
|
|
date(self)
Process the DATE command. |
|
|
|
post(self,
f)
Process a POST command. |
|
|
|
ihave(self,
id,
f)
Process an IHAVE command. |
|
|
|
quit(self)
Process a QUIT command and close the socket. |
|
|