diff options
author | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-10-07 16:40:24 +0000 |
---|---|---|
committer | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-10-07 16:40:24 +0000 |
commit | adfaa9e05a89b93f594f7654893a6ab3681bdcfc (patch) | |
tree | 0acd5030fe63a3b42b4be8f9e7c668aa9a81d391 /apps/app_voicemail.c | |
parent | 341e989db91c6d59ea9d68fdd562f0ec20ef5a76 (diff) |
There was a boo-boo in TFOT that is causing some confusion on the mailing lists
so include 'imapsecret' as an alias to 'imappassword' (and print a little notice
nudging users toward the right option name).
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@147191 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | apps/app_voicemail.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 5f00c0e86..5e7b4c879 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -775,6 +775,9 @@ static void apply_option(struct ast_vm_user *vmu, const char *var, const char *v ast_copy_string(vmu->imapuser, value, sizeof(vmu->imapuser)); } else if (!strcasecmp(var, "imappassword")) { ast_copy_string(vmu->imappassword, value, sizeof(vmu->imappassword)); + } else if (!strcasecmp(var, "imapsecret")) { + ast_log(LOG_WARNING, "Use of the 'imapsecret' option is discouraged, please use 'imappassword' instead.\n"); + ast_copy_string(vmu->imappassword, value, sizeof(vmu->imappassword)); #endif } else if (!strcasecmp(var, "delete") || !strcasecmp(var, "deletevoicemail")) { ast_set2_flag(vmu, ast_true(value), VM_DELETE); @@ -1009,6 +1012,9 @@ static void apply_options_full(struct ast_vm_user *retval, struct ast_variable * ast_copy_string(retval->imapuser, tmp->value, sizeof(retval->imapuser)); } else if (!strcasecmp(tmp->name, "imappassword")) { ast_copy_string(retval->imappassword, tmp->value, sizeof(retval->imappassword)); + } else if (!strcasecmp(tmp->name, "imapsecret")) { + ast_log(LOG_WARNING, "Use of the 'imapsecret' option is discouraged, please use 'imappassword' instead.\n"); + ast_copy_string(retval->imappassword, tmp->value, sizeof(retval->imappassword)); #endif } else apply_option(retval, tmp->name, tmp->value); |