Prints the content of /tmp/mymail.err in case of error.
authorFrancois Fleuret <francois@fleuret.org>
Sun, 15 Feb 2015 20:55:35 +0000 (21:55 +0100)
committerFrancois Fleuret <francois@fleuret.org>
Sun, 15 Feb 2015 20:55:35 +0000 (21:55 +0100)
mymail-vm.el

index 08c41ad..2fbd8cd 100644 (file)
@@ -96,5 +96,12 @@ prefaced with \\."
                          search-args))
            0)
         (vm-visit-folder mbox-name t)
-      (message "mymail failed. See /tmp/mymail.err"))
+
+      ;; (message "mymail failed. See /tmp/mymail.err"))
+
+      (message (with-temp-buffer
+                 (insert-file-contents "/tmp/mymail.err")
+                 (replace-string "\n" " ")
+                 (buffer-string)))
+      )
     ))