Re: strange message before sending mail

"Kevin J. McCarthy" <[email protected]>
Newsgroups gmane.mail.mutt.devel
Message-ID <[email protected]>
On Mon, Aug 17, 2026 at 07:38:22PM +0200, Vincent Lefevre wrote:
>This has just occurred again (this time in the train).
>
>In case this matters:
>
>qaa:~[77%]> /usr/bin/stat /var/tmp/mutt-qaa-1000-2859-6061931621091561353
>  File: /var/tmp/mutt-qaa-1000-2859-6061931621091561353
>  Size: 2241            Blocks: 8          IO Block: 4096   regular file
>Device: 254,1   Inode: 13252685    Links: 1
>Access: (0600/-rw-------)  Uid: ( 1000/  vinc17)   Gid: ( 1000/  vinc17)
>Access: 2026-08-17 19:30:55.000617603 +0200
>Modify: 2026-08-17 19:30:55.000607627 +0200
>Change: 2026-08-17 19:30:55.000607627 +0200
> Birth: 2026-08-17 19:30:55.000440459 +0200
>
>I can notice 2 things:
>
>1. The times are just after 19:30:55.
>
>2. The Modify and Change times are not equal to the Birth time,
>which seems unusual

Mutt creates the file and then invokes the editor.  So the birth time 
should be when mutt creates it.  But I'm skeptical about the minuscule 
gap between birth and modify unless you are somehow scripting the test.

It doesn't make sense to me, but maybe mutt gets control back and 
records the stamp as 19:30:54, while the file system syncs out the 
modification time (and birth?) later.

In any case, this may be a new behavior because of the switch to 
$tmpdraftdir, which as opposed to /tmp which may be in RAM in Debian.

Maybe we could bump the stamp up by one second without causing any real 
problems.  What happens if you apply this to sendlib.c:

  void mutt_stamp_attachment(BODY *a)
  {
-  a->stamp = time(NULL);
+  a->stamp = time(NULL) + 1;
  }

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEiXWpszqjeRA4XFMIre92hIAxa9oFAmqFIgIACgkQre92hIAx
a9rXiw//d8JSRAOfC8j8O3IBzfgzdsGSFg8wDZ5OCBVcR077OdEQ3qp3qb7DGnZ5
KhDAWRXowc2q9bOFtboD9FxKjIZADhTDwod0T2ctNmosPu2Qvc4Y9iSqgdo6/Oun
cohKBxKegL98pNmWS6AV2jDLocebFJelB/hPnkC8EsJPpUDpooP8bYYyXKMAZCYk
ddgp+MzmQcspbBkq7bLD3LEsY1CQO5UvCsck/BGYUHxevf1/AWfAV9sOKxVC9kRT
yWY0gtu/txRD4d2rWtZr1VsUiLvzyn0oZqox/o7nEB6jPDW2YJlmwn0O51gUpeoi
sqwR9p+B5opKA26FufBHbu9Acr6I7aDgkL7lcEyFcltjag+KANw5hWTtgugYpz/X
d5Hxbjasf6R6kCMFaAHe4yjVZBB+T5+TgmJhlXXNcUSQRzFfIYFGgRZ9nu86B2o3
fb4rkxoYR4L9j5zm06s0opGldM/dOpxTfIDybvekLQRQBreAN3OHYczKYCjK2suf
486LS2w6my3xIKpu/Om4x2Ge5Pz/ix4H+j6HaQyB5uOjxZz7Jm3NQB2O3w7nVTQT
GLlZqRouZ3gfXHBSVNRDj+Irar7RvGjeVAe69GD990472eGA1MkCTT4ydBkdMf0h
ahDvrpmn7MHQDsm5nF85jrtWG4Md2qxvXXXO84TcJeEgOwB5ozY=
=uwIQ
-----END PGP SIGNATURE-----
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.