[asterisk-bugs] [Asterisk 0016350]: Deleting Multiple IMAP voicemails does not work reliably

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Jun 3 10:11:18 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16350 
====================================================================== 
Reported By:                noahisaac
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16350
Category:                   Applications/app_voicemail/IMAP
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.6.1.10 
JIRA:                       SWP-1417 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-11-30 10:56 CST
Last Modified:              2010-06-03 10:11 CDT
====================================================================== 
Summary:                    Deleting Multiple IMAP voicemails does not work
reliably
Description: 
Deleting a single IMAP voicemail in one VoicemailMain() session always
works as expected.  When deleting two or more IMAP messages in a single
VoicemailMain() session, the results are unpredictable: some or all of the
messages do not get deleted.  The more messages that are deleted, the more
likely it is to get the error.  If five or more messages are deleted, the
error will always happen, and some of the messages that are supposed to be
deleted will not be deleted.

When the VoicemailMain() session ends, this message is displayed in the
CLI:
[Nov 30 10:54:34] ERROR[6887]: app_voicemail.c:2359 mm_log: IMAP Error:
IMAP protocol error: Error in IMAP command STORE: Invalid messageset
[Nov 30 10:54:34] ERROR[6887]: app_voicemail.c:2359 mm_log: IMAP Error:
Error in IMAP command STORE: Invalid messageset

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0017135 [patch] Message count incorrect
====================================================================== 

---------------------------------------------------------------------- 
 (0122885) tilghman (administrator) - 2010-06-03 10:11
 https://issues.asterisk.org/view.php?id=16350#c122885 
---------------------------------------------------------------------- 
I wonder if this might be fixed if we reverse the order in which voicemails
are deleted.  My theory is that IMAP renumbers the indexes immediately when
one is deleted, so supposing that you had 5 voicemails and you chose to
delete
2, 3, and 4, the current sequence is:
1 2 3 4 5
delete second
1 3 4 5
delete third
1 3 5
delete fourth (3 messages, invalid index number).

If we delete in reverse:
1 2 3 4 5
delete fourth
1 2 3 5
delete third
1 2 5
delete second
1 5 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-06-03 10:11 tilghman       Note Added: 0122885                          
======================================================================




More information about the asterisk-bugs mailing list