Fix VM snapshot handling for combined INBOX.
authorJason Parker <jparker@digium.com>
Wed, 15 May 2013 15:03:40 +0000 (15:03 +0000)
committerJason Parker <jparker@digium.com>
Wed, 15 May 2013 15:03:40 +0000 (15:03 +0000)
commitd8d1def22c060612c82c9ae78e794ce45004a530
tree6ed892462d1717581a1f3f5e5b24c77f45a680d7
parent1ead1853f22f5dfb6cb57a9b9eefb040a1d6030a
Fix VM snapshot handling for combined INBOX.

The snapshot API contains an option that allow for combining of new
and old messages within a single snapshot. New messages, however,
include options beyond just 'INBOX' - it also includes the Urgent
folder. A previous patch that combined INBOX and Urgent accidentally
impacted snapshots that attempted to gain messages from just the Old
folder. This patch fixes the snapshot gathering such that the API
returns the appropriate messages for the folder selected, with and
without the combine option.

This should make it more clear about what's happening.

Review: https://reviewboard.asterisk.org/r/2539/
........

Merged revisions 388816 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@388818 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_voicemail.c