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:[EMAIL PROTECTED]
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

> For you email gurus out there:
> 
> I open an email port like this:
> 
> bag: open pop://user:[EMAIL PROTECTED]
> 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:
> 
> remove bag
> close bag
> 
> Will only the original 5 messages be removed from the server or,
> since the port was left open, will all 8 of the messages be removed from the
> server. (with me never knowing about the last 3.)
> 
> Greg Coughlan
> 
> 

Reply via email to