[asterisk-bugs] [Asterisk 0012032]: Autocreate IMAP folders that don't exist

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Feb 19 18:37:57 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12032 
====================================================================== 
Reported By:                jaroth
Assigned To:                putnopvut
====================================================================== 
Project:                    Asterisk
Issue ID:                   12032
Category:                   Applications/app_voicemail
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 103808 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             02-19-2008 15:30 CST
Last Modified:              02-19-2008 18:37 CST
====================================================================== 
Summary:                    Autocreate IMAP folders that don't exist
Description: 
When saving messages to alternate folders (Friends, Family, Work, etc.), if
the IMAP folders do not exist, they are now created automatically.  This
code has been tested with Cyrus IMAP.

====================================================================== 

---------------------------------------------------------------------- 
 putnopvut - 02-19-08 18:37  
---------------------------------------------------------------------- 
The patch is fine, but I'm going to remove the bulk of the mm_notify
callback addition that was made for this since the notice message that may
be printed is not very useful.

Also, for future reference, if you want a case-insensitive comparison of
the first x characters of a string, just use strncasecmp. It's more compact
than comparing each individual character, it's less prone to typos, and it
also is safer than the method you used (consider the case where the string
passed in is less than 10 characters long).

Thanks for the patch! 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
02-19-08 18:37  putnopvut      Note Added: 0082615                          
======================================================================




More information about the asterisk-bugs mailing list