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

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


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=14298 
====================================================================== 
Reported By:                jablko
Assigned To:                jpeeler
====================================================================== 
Project:                    Asterisk
Issue ID:                   14298
Category:                   Applications/app_voicemail/NewFeature
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     closed
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:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-01-21 11:16 CST
Last Modified:              2009-12-02 18:46 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"
====================================================================== 

---------------------------------------------------------------------- 
 (0114626) svnbot (reporter) - 2009-12-02 18:46
 https://issues.asterisk.org/view.php?id=14298#c114626 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 232701

_U  branches/1.6.2/

------------------------------------------------------------------------
r232701 | jpeeler | 2009-12-02 18:46:04 -0600 (Wed, 02 Dec 2009) | 15
lines

Blocked revisions 232700 via svnmerge

........
  r232700 | jpeeler | 2009-12-02 18:38:03 -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=232701 

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




More information about the asterisk-bugs mailing list