File imap-2006c1.diff of Package imap

--- Makefile
+++ Makefile
@@ -529,7 +529,8 @@
 	@echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 	@echo
 	@echo Do you want to build with IPv6 anyway?  Type y or n please:
-	@$(SH) -c 'read x; case "$$x" in y) exit 0;; *) (make clean;exit 1);; esac'
+	@$(SH) -c 'read x; case "$$x" in *) exit 0;; esac'
+# *) (make clean;exit 1);; esac'
 	@echo OK, I will remember that you really want to build with IPv6.
 	@echo You will not see this message again.
 	@$(TOUCH) ip6
--- src/c-client/mail.c
+++ src/c-client/mail.c
@@ -2906,8 +2906,10 @@
 				/* parse time */
     d = strtoul (s+1,(char **) &s,10);
     if (*s != ':') return NIL;
-    m = strtoul (++s,(char **) &s,10);
-    y = (*s == ':') ? strtoul (++s,(char **) &s,10) : 0;
+	s++;
+    m = strtoul (s,(char **) &s,10);
+	s++;
+    y = (*s == ':') ? strtoul (s,(char **) &s,10) : 0;
 				/* validity check time */
     if ((d > 23) || (m > 59) || (y > 60)) return NIL; 
 				/* set values in elt */
--- src/mlock/mlock.c
+++ src/mlock/mlock.c
@@ -38,8 +38,10 @@
 #include <sys/param.h>
 #include <stdlib.h>
 #include <netdb.h>
+#include <unistd.h>
 #include <ctype.h>
 #include <strings.h>
+#include <string.h>
 
 #define LOCKTIMEOUT 5		/* lock timeout in minutes */
 #define LOCKPROTECTION 0775
--- src/osdep/unix/mbx.c
+++ src/osdep/unix/mbx.c
@@ -37,6 +37,7 @@
 #include <stdio.h>
 #include <ctype.h>
 #include <errno.h>
+#include <utime.h>
 extern int errno;		/* just in case */
 #include "mail.h"
 #include "osdep.h"
--- src/osdep/unix/mh.c
+++ src/osdep/unix/mh.c
@@ -35,6 +35,7 @@
 #include "osdep.h"
 #include <pwd.h>
 #include <time.h>
+#include <utime.h>
 #include <sys/stat.h>
 #include <sys/time.h>
 #include "misc.h"
--- src/osdep/unix/mmdf.c
+++ src/osdep/unix/mmdf.c
@@ -30,6 +30,7 @@
 #include <stdio.h>
 #include <ctype.h>
 #include <errno.h>
+#include <utime.h>
 extern int errno;		/* just in case */
 #include <signal.h>
 #include "mail.h"
--- src/osdep/unix/mtx.c
+++ src/osdep/unix/mtx.c
@@ -35,6 +35,7 @@
  */
 
 #include <stdio.h>
+#include <utime.h>
 #include <ctype.h>
 #include <errno.h>
 extern int errno;		/* just in case */
--- src/osdep/unix/mx.c
+++ src/osdep/unix/mx.c
@@ -35,6 +35,7 @@
 #include "osdep.h"
 #include <pwd.h>
 #include <time.h>
+#include <utime.h>
 #include <sys/stat.h>
 #include <sys/time.h>
 #include "misc.h"
--- src/osdep/unix/tenex.c
+++ src/osdep/unix/tenex.c
@@ -41,6 +41,7 @@
 
 #include <stdio.h>
 #include <ctype.h>
+#include <utime.h>
 #include <errno.h>
 extern int errno;		/* just in case */
 #include "mail.h"