[asterisk-bugs] [Asterisk 0014298]: [patch] per-mailbox imapfolder option

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Dec 2 18:45:41 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=14298 
====================================================================== 
Reported By:                jablko
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14298
Category:                   Applications/app_voicemail/NewFeature
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           SVN 
JIRA:                       SWP-438 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-01-21 11:16 CST
Last Modified:              2009-12-02 18:45 CST
====================================================================== 
Summary:                    [patch] per-mailbox imapfolder option
Description: 
[ Link Removed - See Notes ]

I recently switched from file system to IMAP voicemail storage and it
worked great for most users. Mostly I have a typical IMAP setup, so the
defaults worked. I just set in voicemail.conf:

authuser=administrator
authpassword=password

- then added "imapuser" to each mailbox:

[...]
6005 => 1234,Jack Bates,ms419 at freezone.co.uk,,imapuser=jbates
[...]

One challenge was my general delivery mailbox, which I wanted stored in a
shared IMAP mailbox. I tried to configure that as follows:

6000 =>
1234,House,house at campcoop.com,,imapfolder=shared.house|imapuser=administrator

- but I got these errors:

[Jan  4 15:23:32] ERROR[3270] app_voicemail_imap.c: Error while sending
the mess
age to {localhost:143/imap/authuser=administrator/user=administrator}INBOX

As I discovered, this was because Asterisk tried to store in the
administrator user's INBOX, and my administrator user does not have an IMAP
mailbox. In fact I wanted the message stored in the "shared.house" shared
mailbox.

After a look at app_voicemail.c, I realized my problem was that
"imapfolder" is a per-context option, not a per-mailbox option. However I
want to set "imapfolder" for only one mailbox - the default, "INBOX", works
otherwise.

So I created the linked patch to make "imapfolder" a per-mailbox option.
Now the general delivery mailbox successfully stores messages in
{localhost:143/imap/authuser=administrator/user=administrator}shared.house

To create this patch, I basically copied the code for "imapuser", which is
a per-mailbox option, for "imapfolder"
====================================================================== 

---------------------------------------------------------------------- 
 (0114625) svnbot (reporter) - 2009-12-02 18:45
 https://issues.asterisk.org/view.php?id=14298#c114625 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 232700

U   trunk/CHANGES
U   trunk/apps/app_voicemail.c
U   trunk/configs/voicemail.conf.sample

------------------------------------------------------------------------
r232700 | jpeeler | 2009-12-02 18:45:39 -0600 (Wed, 02 Dec 2009) | 10
lines

Extend voicemail to allow IMAP folders to be specified per mailbox.

Previously only possible per context, new option called imapfolder.

(closes issue https://issues.asterisk.org/view.php?id=14298)
Reported by: jablko
Patches: 
      patch-200906202 uploaded by jablko (license 675)


------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=232700 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-12-02 18:45 svnbot         Checkin                                      
2009-12-02 18:45 svnbot         Note Added: 0114625                          
======================================================================




More information about the asterisk-bugs mailing list