complex FETCH using IMAPLIB

Asle Pedersen apederse at siving.hia.no
Thu Dec 30 03:30:19 EST 1999


Are anyone familiar with the imaplib.py?? I manage to get all the simple
functions working but I'm bit unsure of the syntax with more complicated
commands. I have the book Programming Internet Email where there is a FETCH
command that looks like:
DF56 FETCH 1:3 (RFC822.SIZE BODY[HEADER.FIELDS (FROM SUBJECT)]).
This is supposed to work from a telnet session to a mailserver, but how will
I do this with the IMAPLIB??
There is no problems with commands like:
typ, data = M.FETCH(1, 'BODY')

-Asle Pedersen





More information about the Python-list mailing list