POP3 and selective download/deletion

Steve Holden sholden at holdenweb.com
Sat Apr 5 10:19:45 EST 2003


"Thomas Guettler" <pan-newsreader at thomas-guettler.de> wrote in message
news:pan.2003.04.05.16.22.31.832230.878 at thomas-guettler.de...
> On Sat, 05 Apr 2003 12:12:26 +0200, Dino Levy wrote:
>
> > Hello!
> > I'm making a mail program and I have a little problem: I don't know how
> > to achieve the selective downloads/deletion from POP3 servers.
>
> Maybe this recipe from the python cookbook does help you to get started:
>   http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/134945
>
> It prints all messages which are biger then N bytes and ask if it should
> be deleted.
>

Unfortunately the POP3 protocol doesn't allow you download the headers of a
message without downloading the whole thing. IMAP4 is much more capable, but
it's also a very much more complex protocol.

regards
--
Steve Holden                                  http://www.holdenweb.com/
Python Web Programming                 http://pydish.holdenweb.com/pwp/
Did you miss PyCon DC 2003?            Would you come to PyCOn DC 2004?







More information about the Python-list mailing list