diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-02-05 23:30:58 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-02-05 23:30:58 +0000 |
commit | 291380d7ecd42bfab359d2b4a5c5ab78d9f49bfe (patch) | |
tree | f1cc606d24bf63114331d3350c8276c46ec8593c /apps | |
parent | 8f3a875db178ffcbff3db7c1a316354394aaad05 (diff) |
Merged revisions 173773 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r173773 | mmichelson | 2009-02-05 17:28:19 -0600 (Thu, 05 Feb 2009) | 7 lines
Properly set "seen" and "unseen" flags when moving messages from the new to the old folder when using IMAP for voicemail storage
(closes issue #13905)
Reported by: jaroth
Patches:
foldermove_v2.patch uploaded by jaroth (license 50)
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@173774 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index c49d3c6fa..952e3fa11 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -4634,8 +4634,10 @@ static int has_voicemail(const char *mailbox, const char *folder) if (box == OLD_FOLDER) { mail_setflag(vms->mailstream, sequence, "\\Seen"); + mail_clearflag(vms->mailstream, sequence, "\\Unseen"); } else if (box == NEW_FOLDER) { mail_clearflag(vms->mailstream, sequence, "\\Seen"); + mail_setflag(vms->mailstream, sequence, "\\Unseen"); } if (!strcasecmp(mbox(NEW_FOLDER), vms->curbox) && (box == NEW_FOLDER || box == OLD_FOLDER)) { ast_mutex_unlock(&vms->lock); |