stable now but there are GIANT PIECES MISSING
[citadel.git] / citadel / modules / imap / imap_list.c
index 14cd0476ecee1f613b20fe537bf9a7e08e4c258e..1be8bab29bed6275d1c8489cb486505cf9cf623c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Implements the LIST and LSUB commands.
  *
- * Copyright (c) 2000-2009 by Art Cancro and others.
+ * Copyright (c) 2000-2017 by Art Cancro and others.
  *
  *  This program is open source software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
 #include <pwd.h>
 #include <errno.h>
 #include <sys/types.h>
-
-#if TIME_WITH_SYS_TIME
-# include <sys/time.h>
-# include <time.h>
-#else
-# if HAVE_SYS_TIME_H
-#  include <sys/time.h>
-# else
-#  include <time.h>
-# endif
-#endif
-
+#include <time.h>
 #include <sys/wait.h>
 #include <ctype.h>
 #include <string.h>
@@ -378,7 +367,7 @@ void imap_list(int num_parms, ConstStr *Params)
                                          &Params[i], 
                                          1);
 
-                       IMAP_syslog(LOG_DEBUG, "evaluating <%s>", Params[i].Key);
+                       syslog(LOG_DEBUG, "evaluating <%s>", Params[i].Key);
 
                        if (!strcasecmp(Params[i].Key, "SUBSCRIBED")) {
                                ImapFilter.return_subscribed = 1;