'Process a POST command.  Arguments:
- f: file containing the article
Returns:
- resp: server response if successful'

def post(self, f):

    resp = self.shortcmd('POST')
    if (resp[0] != '3'):
        raise NNTPReplyError(resp)
    while 1:
        line = f.readline()
        if (not line):
            break
        if (line[(-1)] == '\n'):
            line = line[:(-1)]
        if (line[:1] == '.'):
            line = ('.' + line)
        self.putline(line)
    self.putline('.')
    return self.getresp()
