We're looking for a way from the c-client to detect whether any message
flags have changed.

We were hoping mail_ping() would call mm_exists() if any flags have
changed, but it does not seem to do so -- if I'm understanding correctly,
mm_exists() will only be called if the number of messages in the mailbox
changes.

The actual situation is that we are developing a c-client based voice
messaging application that will be run from VoIP phones to listen to
voice messages stored on an IMAP server.  If new messages come in, we
turn on the message waiting indicator on the phone using a mail_ping()
loop.  This also works if messages are deleted and expunged from another
phone or IMAP client.  But if those messages are then read but not
deleted, we want to turn the light off, but our client is unaware of the
state change.

Is there some relatively efficient way to detect changes in message
status, or do we need to go and check all the message flags by hand each
time through the loop?

Thanks,

Mark

_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to