This patch fixes 2 problems:

1) A file's time stamp is not set to current time when the file is modified

2) Execute-permission for other is not cleared when a file is modified

For: Mutt 1.5.21
(Which happens to be the one shipped with openSUSE 11.4.)

Volker Kuhlmann
12 Jan 2002, Aug 2002, 16 Nov 2002; 12 Feb 2007; 20 May 2011



--- mutt-1.5.21/mbox.c.orig	2011-05-20 01:45:49.000000000 +1200
+++ mutt-1.5.21/mbox.c	2011-05-20 02:28:58.000000000 +1200
@@ -709,6 +709,21 @@
   utimebuf.actime = st->st_atime;
   utimebuf.modtime = st->st_mtime;
 
+  /* Don't restore mtime of modified files because it's just annoying.
+   * -VK
+   */
+  utimebuf.modtime = time(NULL);
+  
+  /* Clear the executable bit for other. This is very convenient for use with
+   * procmail which can be set up to indicate new mail by setting the o+x 
+   * permission. -VK
+   */
+  if (stat (ctx->path, &_st) == 0) {
+    chmod (ctx->path, _st.st_mode & (~S_IXOTH));
+    /* No need to check return code of chmod(), if it fails, not much can be done
+     * about it and matters are not any worse anyway. -VK */
+  }
+
   /*
    * When $mbox_check_recent is set, existing new mail is ignored, so do not
    * recent the atime to mtime-1 to signal new mail.
