From: helge Date: Wed, 22 Feb 2006 11:52:49 +0000 (+0000) Subject: hardcoded tzname detection X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e701b2ef8ac9f7f2a533d8ef497a4279601b0dc1;p=sope hardcoded tzname detection git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1215 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- diff --git a/sope-mime/ChangeLog b/sope-mime/ChangeLog index ad71a4f2..18a8f28d 100644 --- a/sope-mime/ChangeLog +++ b/sope-mime/ChangeLog @@ -1,3 +1,7 @@ +2006-02-22 Helge Hess + + * NGMime: hardcoded CET/UTC in tzname parsing (v4.5.240) + 2005-12-13 Helge Hess * NGMail: some code cleanups / reorgs (v4.5.239) diff --git a/sope-mime/NGMime/ChangeLog b/sope-mime/NGMime/ChangeLog index aa1c0209..b456cf05 100644 --- a/sope-mime/NGMime/ChangeLog +++ b/sope-mime/NGMime/ChangeLog @@ -1,3 +1,8 @@ +2006-02-22 Helge Hess + + * NGMimeRFC822DateHeaderFieldParser.m: added hardcoded detection for + CET and UTC in addition to GMT and MET + 2005-12-16 Marcus Mueller * NGMime.xcodeproj: synced with GNUmakefile diff --git a/sope-mime/NGMime/NGMimeRFC822DateHeaderFieldParser.m b/sope-mime/NGMime/NGMimeRFC822DateHeaderFieldParser.m index 32c87b47..6edb8e9b 100644 --- a/sope-mime/NGMime/NGMimeRFC822DateHeaderFieldParser.m +++ b/sope-mime/NGMime/NGMimeRFC822DateHeaderFieldParser.m @@ -253,7 +253,9 @@ static NSTimeZone *parseTimeZone(unsigned char *s, unsigned int len) { } else if (len == 3) { if (strcasecmp((char *)s, "GMT") == 0) return gmt; + if (strcasecmp((char *)s, "UTC") == 0) return gmt; if (strcasecmp((char *)s, "MET") == 0) return met; + if (strcasecmp((char *)s, "CET") == 0) return met; } if (isalpha(*s)) { diff --git a/sope-mime/Version b/sope-mime/Version index bd8bd08a..33ace709 100644 --- a/sope-mime/Version +++ b/sope-mime/Version @@ -2,7 +2,7 @@ MAJOR_VERSION:=4 MINOR_VERSION:=5 -SUBMINOR_VERSION:=239 +SUBMINOR_VERSION:=240 # v4.5.214 requires libNGExtensions v4.5.146 # v4.2.149 requires libNGStreams v4.2.34