How about we say "yes" only if there are new messages.... cvs update and let me know if that worked.
Mark On Wed, 26 Mar 2003, Lenny Tropiano / asterisk.org Mailing list wrote: > Looking at the cvs rdiff from 1.5 to 1.6, apparently the behavior changed? > > The old way it just checked "inbox" for new messages and turned on the MWI. Now it > seems > to add the new+old to turn on the Message Waiting Indicator. Personally after I've > listened > to the messages and saved them in a Old "folder" it shouldn't count that for the MWI. > I would prefer the older behavior, and I think that would be more correct. > > Old Way: snprintf(tmp, sizeof(tmp), "Message-Waiting: %s\n", hasmsgs ? "yes" : "no"); > > New Way: snprintf(tmp, sizeof(tmp), "Message-Waiting: %s\n", (newmsgs + oldmsgs) ? > "yes" : "no"); > > _______________________________________________ > Asterisk-Users mailing list > [EMAIL PROTECTED] > http://lists.digium.com/mailman/listinfo/asterisk-users > _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
