Re: [PATCH] Adjust pattern max year to 2037.

Alejandro Colomar via Mutt-dev <[email protected]>
Newsgroups gmane.mail.mutt.devel
Message-ID <aYXb-ZNVDOALFvzw@devuan>
On 2026-02-06T13:30:31+0800, Kevin J. McCarthy wrote:
> 2030 is no longer "far in the future".  But don't assume all clients
> support 64 bit times yet.  For now, bump it up to just below the 2038
> limit.

LGTM.

> ---
>  pattern.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/pattern.c b/pattern.c
> index a7f9e48e..a6518ac6 100644
> --- a/pattern.c
> +++ b/pattern.c
> @@ -904,7 +904,7 @@ static int eval_date_minmax (pattern_t *pat, const char *s, BUFFER *err)
>    /* Arbitrary year in the future.  Don't set this too high
>       or mutt_mktime() returns something larger than will
>       fit in a time_t on some systems */
> -  max.tm_year = 130;
> +  max.tm_year = 137;
>    max.tm_mon = 11;
>    max.tm_mday = 31;
>    max.tm_hour = 23;
> -- 
> 2.52.0
> 

-- 
<https://www.alejandro-colomar.es>
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEES7Jt9u9GbmlWADAi64mZXMKQwqkFAmmF3B8ACgkQ64mZXMKQ
wqm/Yg/8DtdYe0RkEbfqgcE5NxU4BvOonnmw82Iffzp5r7ipL8H1ua7VFREnUc24
JFWrOYZUTWksChs9LD0XaTCCaK7d6bW/kaSkIuXimnXQ88Ckp1CITn1AJtyJFg0x
oIZUPx6qtXtBvneLRTwX+uD+Gvm0juWH6mzHzOGByT5xLeOgB/sXA0d0iwsTnMaU
K+/eBYuwGNrHpH86Ez+bUeaS+zKw+6qWrDTTqKx0t1b73G0E5Cov1nnYPdfYcgFT
5CaXH/06Rs3a9BuDZdV117M7enWfbeyCUSQ5unlnwDSpe2TW7vpDE2aOhFYhw4Ea
+vW4WGpJMcEt2d3wWP/i+SjVxxsNJqmac9GE2OtXW+qgjD2m2g2Sn4j4t9S9zeaF
iqkINopjQEK63nF4OYYVCtd9w9fbLymRqSpW/4seFDCoS0kpYqu1ZRr927a/zqPk
YEWPgD0SaHWaAMHEv8nhmL+3gp2qfeMncisihqL8fwdL+nVIJk/m5YEC1gviDzE1
R/MSQj7bh9uHnHZzbdDjv22sRT0mzSY7gEIAtrbRI2LoOuEqKympbU4pGIGg22GW
75RpfpjlFC68bjyopZD4lg7MCe8Cnc9OaneoLDcF64/BntBFQC47lKsMhHcLmqpC
D+I9frVPBxYOtYU9i3M72UJcGbMhpi74JLr/w8e7B7PsfGyG5kM=
=O/pr
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.