[REBOL] pop question Re:
From: sterling::rebol::com at: 28-Sep-2000 13:49
Actually, neither will happen they way you have specified it. This is
because you have called REMOVE which will only remove the first
element (use CLEAR). But to answer the real question:
bag: open pop://user:[pass--email--com]
length? bag
== 5
and DO NOT close it while my program runs for, say, 10 minutes.
If the server receives 3 more messages for me during that time and
I then do:
CLEAR bag ; !!!!!!!!!! note, CLEAR removes all items, REMOVE does one
close bag
All 5 items will be removed and the next time you check your mail you
will have the 3 new messages. It's easy to check since you can mail
yourself some messages while you have the port open and I strongly
suggest you do this for two reasons. One, understanding usually comes
better through doing than hearing and two, you will prove that is DOES
work like this and will not worry that you got the wrong info from
somebody else (like me). And I don't want to responsible for lost
email in case the server you access is totally weird. :)
Sterling