]>
Commit | Line | Data |
---|---|---|
7e5fb030 | 1 | --- send.c.bak Wed Mar 3 22:11:30 1999 |
2 | +++ send.c Wed Mar 3 22:18:10 1999 | |
3 | @@ -33,6 +33,9 @@ | |
4 | #include <sys/stat.h> | |
5 | #include <sys/wait.h> | |
6 | #include <dirent.h> | |
7 | +#include <time.h> | |
8 | +#include <sys/types.h> | |
9 | +#include <utime.h> | |
10 | ||
11 | #ifdef _PGPPATH | |
12 | #include "pgp.h" | |
13 | @@ -1072,9 +1075,20 @@ ci_send_message (int flags, /* send mod | |
14 | { | |
15 | struct stat st; | |
16 | time_t mtime; | |
17 | + struct utimbuf utim; | |
18 | ||
19 | stat (msg->content->filename, &st); | |
20 | mtime = st.st_mtime; | |
21 | + if (mtime == time (NULL)) | |
22 | + { | |
23 | + /* Decrease the file's modification time by 1 second so we are sure | |
24 | + * to find out if the `editor' program changes it in less than 1 second. | |
25 | + */ | |
26 | + mtime -= 1; | |
27 | + utim.actime = mtime; | |
28 | + utim.modtime = mtime; | |
29 | + utime (msg->content->filename, &utim); | |
30 | + } | |
31 | ||
32 | mutt_update_encoding (msg->content); | |
33 | ||
34 | --- patchlist.c.orig Sat Sep 19 02:29:51 1998 | |
35 | +++ patchlist.c Sat Sep 19 02:54:16 1998 | |
36 | @@ -16,6 +16,8 @@ | |
37 | ||
38 | ||
39 | ||
40 | + printf("Feature patch: ed_mtime 0.95.3 by Byrial Jensen\n"); | |
41 | + | |
42 | ||
43 | ||
44 | /* DO NOT MODIFY AFTER THIS LINE */ |