'@type f: file-like object
@param f: A file containing a mail message.
@type n: L{int}
@param n: The number of lines of the message body to retrieve.'

def __init__(self, f, n):

    self.f = f
    self.n = n
    self.linecount = 0
    self.headers = 1
    self.done = 0
    self.buf = ''
