Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jan 2019 18:54:42 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 235136] cron email header has bogus date value
Message-ID:  <bug-235136-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235136

            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@FreeBSD.org
          Reporter: ml-freebsd.org@vintners.net

Obscure problem with 'cron'.

I have a script that fires hourly, normally producing no output, thus no em=
ail.
 It has started reporting a problem (nothing to do with FreeBSD), thus is n=
ow
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 t=
he
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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-235136-227>