projects
/
mymail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed the *second* reference to bash-mymail.sh. *sight*
[mymail.git]
/
mymail-vm.el
diff --git
a/mymail-vm.el
b/mymail-vm.el
index
10bcb7d
..
2fbd8cd
100644
(file)
--- a/
mymail-vm.el
+++ b/
mymail-vm.el
@@
-30,7
+30,7
@@
(defgroup mymail ()
"Command to visit a folder built on-the-fly with mymail"
(defgroup mymail ()
"Command to visit a folder built on-the-fly with mymail"
- :version "0.9.
8
")
+ :version "0.9.
10
")
(defcustom mymail/default-additional-search-requests ""
"Comma-separated list of search requests to add to any search"
(defcustom mymail/default-additional-search-requests ""
"Comma-separated list of search requests to add to any search"
@@
-80,13
+80,28
@@
prefaced with \\."
(while (get-file-buffer (setq mbox-name (format "/tmp/mymail-vm-%d.mbox" n)))
(setq n (+ n 1)))
(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
(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)
"--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"))
+
+ (message (with-temp-buffer
+ (insert-file-contents "/tmp/mymail.err")
+ (replace-string "\n" " ")
+ (buffer-string)))
+ )
))
))