diff options
author | mogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-08-17 22:39:48 +0000 |
---|---|---|
committer | mogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-08-17 22:39:48 +0000 |
commit | e6e061dfca2c6aad80208ffa2dea4e5b819f3e8b (patch) | |
tree | 6c4251ed1100a65690ba885c9ab1e20da60e9f6e /apps/app_voicemail.c | |
parent | eb2dec241d3620dec5e74e6af9312e75040d6464 (diff) |
changes to configure to support older c-client than the
2004 version.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40335 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | apps/app_voicemail.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index e3c67f743..9952d4094 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -6470,10 +6470,13 @@ out: /* expunge message - use UID Expunge if supported on IMAP server*/ ast_log(LOG_DEBUG, "*** Checking if we can expunge, deleted set to %d, expungeonhangup set to %d\n",deleted,expungeonhangup); if (vmu && deleted == 1 && expungeonhangup == 1) { +#ifdef HAVE_IMAP_TK2006 if (LEVELUIDPLUS (vms.mailstream)) { ast_log(LOG_DEBUG, "*** About to expunge messages using UID\n"); mail_expunge_full(vms.mailstream,NIL,EX_UID); - } else { + } else +#endif + { ast_log(LOG_DEBUG, "*** About to expunge messages\n"); mail_expunge(vms.mailstream); } |