  }
  
  /* 
+@@ -111,7 +68,7 @@
+    TODO: use an own parser for that.
+ */
+ 
+-static int parseMonthOfYear(unsigned char *s, unsigned int len) {
++static int parseMonthOfYear(char *s, unsigned int len) {
+   /*
+     This one is *extremely* forgiving, it only checks what is
+     necessary for the set below. This should work for both, English
 @@ -147,162 +104,110 @@
    }
  }

   }
   
   // TODO: should be a category on NSCalendarDate
@@ -435,7 +340,7 @@
   for (pe = bytes; isalnum(*pe) || *pe == '-' || *pe == '+'; pe++)
     ;
   *pe = '\0';
-  if ((tz = parseTimeZone(bytes, (pe - bytes))) == nil) {
+  if ((tz = parseTimeZone((const char *) bytes, (pe - bytes))) == nil) {
     [self logWithFormat:
             @"WARNING: failed to parse RFC822 timezone: '%s' (value='%@')",
 	    bytes, _data];
@@ -444,9 +349,9 @@
   
   /* construct and return */
  finished:  

===================================================================
--- sope-mime/NGMime/ChangeLog	(révision 1626)
+++ sope-mime/NGMime/ChangeLog	(copie de travail)
@@ -1,3 +1,25 @@
+2008-09-08  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
+
+	* NGMimeRFC822DateHeaderFieldParser.m ([NGMimeRFC
+	-parseValue:ofHeaderField:]): don't parse timezone with a length
+	of 0.
+
+2008-09-01  Wolfgang Sourdeau  <wsourdeau@inverse.ca>
+
+	* NGMimeRFC822DateHeaderFieldParser.m ([NGMimeRFC
