AltME: R3 Protocols

Messages

GrahamC
well then it becomes tricky
If you're at the 10th email, and you skip 10 but that includes 5 deleted ones ... you have to skip 15
Andreas
maintaining deleted state is a performance optimisation, no?
GrahamC
I guess it's just math
Andreas
you can always just in/decrement and try if you really are at a message or continue on
GrahamC
I mean it's a potential source of bugs
destructive ones at that
Maxim
are the delete ones still visible while the deletes are pending?
Andreas
you are at 10th, skip 10, so move to 20, record direction and on the next interaction run LIST n to see if you really are at a non-deleted message and continue onwards if you aren't
Maxim
deleted
Andreas
but if you don't want it to be positional, you could use POKE port msgnum NONE for deletion
or MODIFY port 'delete msgnum
RSET could be query/mode port 'reset or indeed a write port 'reset
maxim: messages marked for deletion are no long accessible, but their message number is still taken
GrahamC
Anyway, this logic can be added later on easily enough.  basic retrieval is working  :)
Andreas
with FSM or without :) ?
GrahamC
I only did a FSM version.  Yours you have to answer that one.
Maxim
maybe deleted messages should be completely ignored in all actions, so that they seem to be deleted immediately.
IIRC once deleted, messages cannot be "undelete" unless the port is shutdown and a new connection made.
Andreas
you have to issue an RSET to undelete all messages at once.
and yes, they should be ignored in a positional scheme :)
GrahamC
Max, incorrect.

Last message posted 490 weeks ago.