;; Copyright (c) 2013 Francois Fleuret ;; Written by Francois Fleuret ;; ;; This file is part of mymail. ;; ;; mymail is free software: you can redistribute it and/or modify it ;; under the terms of the GNU General Public License version 3 as ;; published by the Free Software Foundation. ;; ;; mymail is distributed in the hope that it will be useful, but ;; WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; General Public License for more details. ;; ;; You should have received a copy of the GNU General Public License ;; along with mymail. If not, see . (defun mymail/vm-visit-folder (param) (interactive (list (read-string "mymail-vm search: " nil 'mymail-vm-history))) (let ((args (mapconcat (lambda (x) (concat "-s " "\"" x "\"")) (split-string param ",") " "))) (shell-command (concat "mymail " args " > /tmp/mymail.mbox")) ) (vm-visit-folder "/tmp/mymail.mbox") )