summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMatt O'Gorman <mogorman@digium.com>2006-08-17 22:39:48 +0000
committerMatt O'Gorman <mogorman@digium.com>2006-08-17 22:39:48 +0000
commit57ee80506229457a9709c6149812e4e4ea085381 (patch)
tree6c4251ed1100a65690ba885c9ab1e20da60e9f6e /apps
parentecb907e01059b3340f4a75e0c81d344435ca934b (diff)
changes to configure to support older c-client than the
2004 version. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40335 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r--apps/app_voicemail.c5
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);
}