]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Allow full month names, compare only the first 3 chars.
authorTimo Sirainen <tss@iki.fi>
Fri, 18 Jul 2003 00:45:13 +0000 (03:45 +0300)
committerTimo Sirainen <tss@iki.fi>
Fri, 18 Jul 2003 00:45:13 +0000 (03:45 +0300)
--HG--
branch : HEAD

src/lib-mail/message-date.c

index f0ba5cc0130bab7bda1a2a8038f9c829bb8d4bd3..6bdfb3cbb7921b283286a196ffb7b83c186513a8 100644 (file)
@@ -132,7 +132,7 @@ static int mail_date_parse_tokens(struct message_tokenizer *ctx, time_t *time,
 
        /* month name */
        token = next_token(ctx, &value, &len);
-       if (token != 'A' || len != 3)
+       if (token != 'A' || len < 3)
                return FALSE;
 
        for (i = 0; i < 12; i++) {