Revert "messages: download-message: Reset mtime."
authorRicardo Wurmus <rekado@elephly.net>
Tue, 31 Mar 2020 21:14:20 +0000 (23:14 +0200)
committerRicardo Wurmus <rekado@elephly.net>
Tue, 31 Mar 2020 21:14:20 +0000 (23:14 +0200)
This reverts commit 9f66dbc6231e2a884f76fa9913a0461887476116.
It's not actually necessary after all!

mumi/messages.scm

index ed7e5f38a1654490faca65ce3c0966ae7da19479..a7d62dcdf7cc111dcfcb3c09de021f2ffe045265 100644 (file)
@@ -175,22 +175,7 @@ target file."
                               (lambda ()
                                 (put-bytevector (current-output-port)
                                                 (get-bytevector-all port))))
-                            (close-port port)
-
-                            ;; Reset mtime, because mu uses it!
-                            (with-input-from-file file-name
-                              (lambda ()
-                                (match (mbox->emails (current-input-port))
-                                  ((email)
-                                   (let* ((mail (parse-email email))
-                                          (seconds
-                                           (time-second
-                                            (date->time-monotonic
-                                             (date mail)))))
-                                     (utime file-name
-                                            seconds
-                                            seconds)))
-                                  (_ #f))))))
+                            (close-port port)))
                         file-name)))))))
 
 ;; We would like to use get-bug-log here, but it often returns