]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Make 'imapsecret' an alias to 'imappassword' in voicemail.conf.
authorSean Bright <sean@malleable.com>
Tue, 7 Oct 2008 16:48:30 +0000 (16:48 +0000)
committerSean Bright <sean@malleable.com>
Tue, 7 Oct 2008 16:48:30 +0000 (16:48 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@147193 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index c029020182e2d22bd936abb1f1b336983f59e924..da7b56923cbbeda4151d6d89ec051dc1ff34d499 100644 (file)
@@ -623,7 +623,7 @@ static void apply_option(struct ast_vm_user *vmu, const char *var, const char *v
 #ifdef IMAP_STORAGE
        } else if (!strcasecmp(var, "imapuser")) {
                ast_copy_string(vmu->imapuser, value, sizeof(vmu->imapuser));
-       } else if (!strcasecmp(var, "imappassword")) {
+       } else if (!strcasecmp(var, "imappassword") || !strcasecmp(var, "imapsecret")) {
                ast_copy_string(vmu->imappassword, value, sizeof(vmu->imappassword));
 #endif
        } else if (!strcasecmp(var, "delete") || !strcasecmp(var, "deletevoicemail")) {
@@ -727,7 +727,7 @@ static void apply_options_full(struct ast_vm_user *retval, struct ast_variable *
 #ifdef IMAP_STORAGE
                } else if (!strcasecmp(tmp->name, "imapuser")) {
                        ast_copy_string(retval->imapuser, tmp->value, sizeof(retval->imapuser));
-               } else if (!strcasecmp(tmp->name, "imappassword")) {
+               } else if (!strcasecmp(tmp->name, "imappassword") || !strcasecmp(tmp->name, "imapsecret")) {
                        ast_copy_string(retval->imappassword, tmp->value, sizeof(retval->imappassword));
 #endif
                } else