[asterisk-bugs] [JIRA] (ASTERISK-24266) imapparentfolder Ignored when saving messages to another folder and other fun!

Rusty Newton (JIRA) noreply at issues.asterisk.org
Wed Sep 17 17:48:30 CDT 2014


    [ https://issues.asterisk.org/jira/browse/ASTERISK-24266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=222699#comment-222699 ] 

Rusty Newton edited comment on ASTERISK-24266 at 9/17/14 5:47 PM:
------------------------------------------------------------------

Yup, I can reproduce, even back in Asterisk 11. I used Gmail as the IMAP server, and the same IMAP client library as you.

I see two failure modes here, though I'm betting there may be more:

1.
If the folder work/Work doesn't already exist, then Asterisk creates it successfully but *doesn't move the mail* to the new folder despite playing the sounds for "message saved to work".

2.
If the folder work/Work does already exist, then we see an error on the console:

{noformat}
[Sep 17 17:38:50] ERROR[19679][C-00000006]: app_voicemail.c:3116 mm_log: IMAP Error: [ALREADYEXISTS] Folder name conflicts with existing folder name. (Failure)
{noformat}

However, Asterisk still tells the user the message was succesfully saved:

{noformat}
[Sep 17 17:38:50] ERROR[19679][C-00000006]: app_voicemail.c:3116 mm_log: IMAP Error: [ALREADYEXISTS] Folder name conflicts with existing folder name. (Failure)
    -- <SIP/6002-0000000a> Playing 'vm-message.gsm' (language 'en')
    -- <SIP/6002-0000000a> Playing 'digits/1.gsm' (language 'en')
    -- <SIP/6002-0000000a> Playing 'vm-savedto.gsm' (language 'en')
    -- <SIP/6002-0000000a> Playing 'vm-Work.gsm' (language 'en')
{noformat}

Of course, Asterisk doesn't actually move the message successfully. Asterisk is a liar in this case again.

This definitely looks buggy!



was (Author: rnewton):
Yup, I can reproduce, even back in Asterisk 11. 

I see two failure modes here, though I'm betting there may be more:

1.
If the folder work/Work doesn't already exist, then Asterisk creates it successfully but *doesn't move the mail* to the new folder despite playing the sounds for "message saved to work".

2.
If the folder work/Work does already exist, then we see an error on the console:

{noformat}
[Sep 17 17:38:50] ERROR[19679][C-00000006]: app_voicemail.c:3116 mm_log: IMAP Error: [ALREADYEXISTS] Folder name conflicts with existing folder name. (Failure)
{noformat}

However, Asterisk still tells the user the message was succesfully saved:

{noformat}
[Sep 17 17:38:50] ERROR[19679][C-00000006]: app_voicemail.c:3116 mm_log: IMAP Error: [ALREADYEXISTS] Folder name conflicts with existing folder name. (Failure)
    -- <SIP/6002-0000000a> Playing 'vm-message.gsm' (language 'en')
    -- <SIP/6002-0000000a> Playing 'digits/1.gsm' (language 'en')
    -- <SIP/6002-0000000a> Playing 'vm-savedto.gsm' (language 'en')
    -- <SIP/6002-0000000a> Playing 'vm-Work.gsm' (language 'en')
{noformat}

Of course, Asterisk doesn't actually move the message successfully. Asterisk is a liar in this case again.

This definitely looks buggy!


> imapparentfolder Ignored when saving messages to another folder and other fun!
> ------------------------------------------------------------------------------
>
>                 Key: ASTERISK-24266
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24266
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_voicemail/IMAP
>    Affects Versions: SVN, 11.12.0, 12.5.0, 13.0.0-beta1
>         Environment: Asterisk 13.0.0-beta1 on Slackware 14.0 connecting to dovecot 2.1.
>            Reporter: Dave Fullerton
>            Assignee: Rusty Newton
>         Attachments: full, imap.pcap
>
>
> After listening to a message I cannot save the message to another folder by pressing 9 and then any folder number > 1.
> I have the following folder structure on my IMAP server:
> INBOX
> Sent
> Voicemail
> |-Family
> |-Work
> My voicemail.conf has the following set:
> imapfolder=Voicemail
> imapparentfolder=Voicemail
> A packet capture shows that when I attempt to save a message to a new folder that the imap folder is created correctly (ie "Voicemail.Work") but the step to save the message is done only to "Work".
> If I manually move a message via thunderbird from "Voicemail" to "Voicemail.Work" I can listen to the message in asterisk by pressing 2 to change folders and then 2 again to select the Work folder.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list