Hi, * Daniele Sempione wrote:
there is an integer overflow handling received emails' date, i.e. when the date is later than Tue Jan 19 04:14:07 2038. this is shown in emails' list: 52 N Dec 14 sender ( 124) subject
this one's date is `Tue, 19 Jan 2038 11:14:07 +0800', which overflows to 14 Dec 1901. the displayed `Date' field of the email header doesn't change.
i guess the behaviour is: date_to_int(); sort_mails(); int_to_date(); /* integer overflow */
No, it's (roughly) string -> struct tm -> time_t (mutt_parse_date() -> mutt_mktime()). It depends on how large time_t is (32/64 bit) whether there's an overflow or not. For 32 bit values, the problem is known and should be fixed in C library rather using workarounds in mutt by turning time_t into 64 bit int.
Rocco -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]