Checking for 'new' POP3 mail

Aahz Maruch aahz at netcom.com
Wed Sep 15 16:20:43 EDT 1999


In article <xRSD3.693$td5.17236 at dfiatx1-snr1.gtei.net>,
Python Addict <init__self at my-deja.com> wrote:
>
>Messages come and go so just purely checking on the number of messages in
>the spool isn't going to work. Our POP server supports the optional UIDL
>command which returns the message number, a space, and then a unique
>identifier for each message.

Bingo.

>Am I making things complex for no reason or is there some built in
>functionality I'm missing from the POP spec? Is there a Python-ish way of
>comparing two lists that I might not be aware of? I was going to start at
>the beginning of the second list, waddle through it, and search for each
>element in the first list.

Use a dict instead of a list.
--
                      --- Aahz (@netcom.com)

Androgynous poly kinky vanilla queer het    <*>      http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6  (if you want to know, do some research)




More information about the Python-list mailing list