poplib.POP3.top

POP3.top(which, howmuch)[source]

Retrieve message header of message number ‘which’ and first ‘howmuch’ lines of message body.

Result is in form [‘response’, [‘line’, ...], octets].