]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-mail: Added comment about invalid timezones in message_date_parse()
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 5 Jun 2016 13:51:12 +0000 (16:51 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 14 Jun 2016 09:23:05 +0000 (12:23 +0300)
src/lib-mail/message-date.c

index 49fedd8a545fbc8b6d14ed02f29afe4e8b1af6c7..ab52e783277c61c45f24aa62c9d418a56b59c84f 100644 (file)
@@ -222,7 +222,11 @@ message_date_parser_tokens(struct message_date_parser_context *ctx,
                /* missing timezone */
                *timezone_offset_r = 0;
        } else {
-               /* timezone */
+               /* timezone. invalid timezones are treated as GMT, because
+                  we may not know all the possible timezones that are used
+                  and it's better to give at least a mostly correct reply.
+                  FIXME: perhaps some different strict version of this
+                  function would be useful? */
                *timezone_offset_r = parse_timezone(value, len);
        }