On Fri, 16 Dec 2005, Mark Sirota wrote:
We've already got the delivery side.  It's easy when a message is played
via the telephone interface, because that's the same software that manages
the message waiting indicator.  The challenge is when someone listens to a
voice message by way of their regular IMAP e-mail client.

Perhaps whenever a message is read, the IMAP server could send a message
to an external routine that would determine whether this was the last
unread voicemail message in the mailbox.

I think that this depends upon the store that holds the voice mail messages. Assuming that it is IMAP-friendly and holds \Seen status, then either the store itself can recognize that the number of not-\Seen messages has fallen to zero, or the driver for that store in the IMAP server can do something like the following in the "flag" method (the one called for the entire mailbox at the end of flagging, as opposed to the "flagmsg" method):
  for (i = 1,lite = NIL; !lite && (i <= stream->nmsgs); ++i)
    if (mail_elt (stream,i)->seen) lite = T;

Then turn the light off iff lite is NIL afterwards.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to