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

 }
 
 /* 
@@ -147,162 +104,110 @@
   }
 }

===================================================================
--- 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
