X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=mymail-vm.el;h=58bb76fd572d40539ab1e98e5b1cfc23b8b69fd1;hb=e2794d56046669841db12c418620a8fa062e13ad;hp=b65d732429693f890dc195a9f7a2d8180be797e4;hpb=7d57add0997d7cd4acfd39cca384c9b1b4382732;p=mymail.git diff --git a/mymail-vm.el b/mymail-vm.el index b65d732..58bb76f 100644 --- a/mymail-vm.el +++ b/mymail-vm.el @@ -16,17 +16,21 @@ ;; You should have received a copy of the GNU General Public License ;; along with mymail. If not, see . +(add-to-list 'recentf-exclude "/tmp/mymail-vm-.*\.mbox") + (defun mymail/vm-visit-folder (param) - (interactive (list (read-string "mymail-vm search: " nil 'mymail-vm-history))) + (interactive + (list (read-string "mymail: " nil 'mymail-vm-history))) (let ((n 1) (mbox-name nil) - (args (mapconcat (lambda (x) (concat "-s " "\"" x "\"")) - (split-string param ",") - " "))) + (args (mapconcat + (lambda (searche-request) (concat "-s " "\"" searche-request "\"")) + (split-string param ",") + " "))) (while (get-file-buffer (setq mbox-name (format "/tmp/mymail-vm-%d.mbox" n))) (setq n (+ n 1))) - (shell-command (concat "mymail " args " > " mbox-name)) - (vm-visit-folder mbox-name) + (shell-command (concat "mymail --quiet --output " mbox-name " " args)) + (vm-visit-folder mbox-name t) ))