From nobody Mon Apr 15 09:16:41 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VJ1kx1L01z5Fg6B for ; Mon, 15 Apr 2024 09:16:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VJ1kw6RkBz3xr5 for ; Mon, 15 Apr 2024 09:16:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713172600; a=rsa-sha256; cv=none; b=TkHrP1421KboN9/6dEP4VDRiS4eor86VQ5DrHLhG9AbpMotMPSQHdHRzW2fSGztW6Tv6gc mzRfApXaDaqIVoDaz1skFvUpPppprtChPaN9pYJaolbYAQhUfo140UvtpCksPI4loWdXK6 VlvDXOrQebKXOxNQfAZHCd1nf2rs56yVYZvvZDjf3B9M7Y5+vxazpy2+Motcyy7avPxN3e cmeqBUgvvffZMeoICDVYTJVNwYEtCK4IgIAEtBaSKupZGJqgXYxfQ68A7eTR4aEkpyondr Jvk5nQJilnBobPewLdW/qBy4N4ntV5QviVbQiN1gg4rp/JSUcVt7j7yr4UfMbg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713172600; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=U8o8R+XadIL/tnlWLd9U11LqF1leMkbuERZifJ57EsM=; b=BCRbn0bG7ntPLd4Yz3SM3XK5h60JxydKeT76hEQd2vdRdGaf+/RLdjX7uSAc3L7E3XvWGU i28fBb3A8W/oTE3Mlks56NejeLLKl7r2nuukEvCItfJNa1XZCuUd7Cumiy9mNOL9yWu4NR GFzm6utdFFbao0PMdNj3sVLakRe3aDZVlrAJwKUhIsktK2xlqNVjSVhVwrHHhl+s7l1Vu9 G/rsZXhhytlJ1X7CYM/z+f2j6QGrs68Err/Lp0/C3ZW4hVxXIEc6e9v6k0yioMZHRs1icc kQQh0CRnUgySiPjp0ssl/3HEPqCHRlysV4Qvfg6/cJrM8Q3QsIK0pgHWuGfcXA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VJ1kw5sXcztnB for ; Mon, 15 Apr 2024 09:16:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 43F9Gekl020126 for ; Mon, 15 Apr 2024 09:16:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 43F9Geff020124 for bugs@FreeBSD.org; Mon, 15 Apr 2024 09:16:40 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 235136] cron email header has bogus date value Date: Mon, 15 Apr 2024 09:16:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: michaelo@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235136 --- Comment #3 from Michael Osipov --- Here is the updated spec: https://datatracker.ietf.org/doc/html/rfc5322#section-3.3 You are right, but I think that the issue with the format isn't in cron its= elf regardless of th invalid time value. This what I see: Date: Mon, 15 Apr 2024 10:59:00 +0200 (CEST) That value isn't comming from cron: > 560 #ifdef MAIL_DATE > 561 /* Sat, 27 Feb 93 11:44:51 CST > 562 * 123456789012345678901234567 > 563 */ > 564 char * > 565 arpadate(clock) > 566 time_t *clock; > 567 { > 568 time_t t =3D clock ?*clock :time(0L); > 569 struct tm *tm =3D localtime(&t); > 570 static char ret[32]; /* zone name might be >3 chars */ > 571 > 572 if (tm->tm_year >=3D 100) > 573 tm->tm_year +=3D 1900; > 574 > 575 (void) snprintf(ret, sizeof(ret), "%s, %2d %s %d %02d:%02d:%02d %= s", > 576 DowNames[tm->tm_wday], > 577 tm->tm_mday, > 578 MonthNames[tm->tm_mon], > 579 tm->tm_year, > 580 tm->tm_hour, > 581 tm->tm_min, > 582 tm->tm_sec, > 583 TZONE(*tm)); > 584 return ret; > 585 } > 586 #endif /*MAIL_DATE*/ TZONE macro looks fine to me. Now look into config.h: 58 59 /* #define MAIL_DATE */ /*-*/ 60 /* should we include an ersatz Date: header in 61 * generated mail? if you are using sendmail 62 * for MAILCMD, it is better to let sendmail 63 * generate the Date: header. 64 */ So I consider the sendmail command is producing this value. If you are runn= ing from stable can you enable that MAIL_DATE macro and see what happens? As it really turns out: "Date: ..." isn't produced by cron at all. --=20 You are receiving this mail because: You are the assignee for the bug.=