As I could understand, in IMAP, we can keep a track of number of messages. But what about recent or unseen messages ? should we always use SEARCH to get the exact count ?
For example, we have some mailbox where a message is both marked \Recent
and \Deleted, we expunge the mailbox, the message is expunged without we
could know if it was recent or not (we did not fetch its flags).
(If a message can't be both \Recent and \Deleted, we suppose we STORE its
flags silently without fetching its new flags).
Then, we don't know how to modify the recent messages count.
to get information on a folder, should we always use SEARCH ?
If there are a lot of messages, it could be wasteful for network traffic,
just to count the messages.
Any suggestion ?
--
DINH V. Hoa,
"s/^\(\(\\.\|[^\[]\|\[\(\^.\|[^^]\)[^]]*\]\)*\)\(\\[^\*[]\)/\1\\\4/"
-- St�phane CHAZELAS
pgp00000.pgp
Description: PGP signature
