Now logs error messages in /tmp/mymail.err.
authorFrancois Fleuret <francois@fleuret.org>
Tue, 29 Jul 2014 10:39:54 +0000 (12:39 +0200)
committerFrancois Fleuret <francois@fleuret.org>
Tue, 29 Jul 2014 10:39:54 +0000 (12:39 +0200)
mymail-vm.el

index 10bcb7d..1f9329f 100644 (file)
@@ -80,13 +80,21 @@ prefaced with \\."
     (while (get-file-buffer (setq mbox-name (format "/tmp/mymail-vm-%d.mbox" n)))
       (setq n (+ n 1)))
 
+    ;; (message (prin1-to-string
+              ;; (nconc (list "mymail"
+                           ;; "--output" mbox-name
+                           ;; "--default-search" "p"
+                           ;; "--nb-mails-max" "500")
+                     ;; search-args))
+             ;; )
+
     (if (= (apply 'call-process
-                  (nconc (list "mymail" nil nil nil
+                  (nconc (list "mymail" nil '(nil "/tmp/mymail.err") nil
                                "--output" mbox-name
                                "--default-search" "p"
                                "--nb-mails-max" "500")
                          search-args))
            0)
         (vm-visit-folder mbox-name t)
-      (message "mymail failed"))
+      (message "mymail failed. See /tmp/mymail.err"))
     ))