Summary: | ASTERISK-24266: imapparentfolder Ignored - saving messages to another folder fails whether it exists or not | ||||
Reporter: | Dave Fullerton (davton) | Labels: | |||
Date Opened: | 2014-08-25 10:04:15 | Date Closed: | |||
Priority: | Major | Regression? | No | ||
Status: | Open/New | Components: | Applications/app_voicemail/IMAP | ||
Versions: | SVN 11.12.0 12.5.0 13.0.0-beta1 | Frequency of Occurrence | Constant | ||
Related Issues: |
| ||||
Environment: | Asterisk 13.0.0-beta1 on Slackware 14.0 connecting to dovecot 2.1. | Attachments: | ( 0) full ( 1) imap.pcap | ||
Description: | 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. | ||||
Comments: | By: Rusty Newton (rnewton) 2014-08-29 16:44:50.472-0500 Please provide: * What IMAP provider/implementation are you using? * Packet captures showing the behavior * [Asterisk debug log|https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information] correlating with the pcap. Please follow the linked instructions, being sure to include all message types. By: Dave Fullerton (davton) 2014-09-02 09:53:50.704-0500 Asterisk log and packet capture of imap connection have been attached. The authentication credentials packet has been removed. The attempt to copy the message from Old messages to Work messages occurs around 9:57:09. I compiled asterisk with c-client-2007f as the imap provider. By: Dave Fullerton (davton) 2014-09-02 10:09:46.081-0500 Requested logs attached and information in comments. By: Rusty Newton (rnewton) 2014-09-17 17:46:19.645-0500 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! |