[Bug 235136] cron email header has bogus date value
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Jan 22 18:54:45 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235136
Bug ID: 235136
Summary: cron email header has bogus date value
Product: Base System
Version: 11.2-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs at FreeBSD.org
Reporter: ml-freebsd.org at vintners.net
Obscure problem with 'cron'.
I have a script that fires hourly, normally producing no output, thus no email.
It has started reporting a problem (nothing to do with FreeBSD), thus is now
emailing me output hourly.
The problem is that the email coming through my 'spamassassin' filter, is
getting flagged as 'DATE_IN_FUTURE'_*. (This forces it into the "probably
spam" range.) As time goes by, this will go up from '_06_12' to '_12_24', etc.
Looking at the Recieved: headers, it appears that the email arrives from
'localhost' with a time setting that does not change, regardless of the time
the 'cron' job fired.
And, in fact, the time appears to be pretty close to the boot time of the
system.
My guess is that when 'cron' builds the header of the email, for the "Date:"
it's using the start time of the 'cron' daemon, instead of properly using the
time of this 'cron' job. I guess I would expect it should be using the time
_now_, as opposed to the time the job was started, but I'll let you figure that
out.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list