Re: [PATCH] Change attachment stamping to use stat st_mtime by default.

Ian Collier via Mutt-dev <[email protected]>
Newsgroups gmane.mail.mutt.devel
Message-ID <[email protected]>
On Thu, Aug 20, 2026 at 12:49:04PM +0200, Oswald Buddenhagen via Mutt-dev wrote:
> that's besides the point. the reasoning as given by the commit message is
> bogus.

It's not at all bogus, though you may feel it misses the precise point
being addressed.  The fact is that because time() has coarse granularity
it is only updated every few milliseconds, and if the real-time clock's
seconds counter ticks during that gap then the result from time() will
show the old value, not the current one, until the next update.

Ian Collier.
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.