Added the --output and --quiet options.
[mymail.git] / mymail-vm.el
index b3d4357..5ca0045 100644 (file)
 ;; You should have received a copy of the GNU General Public License
 ;; along with mymail.  If not, see <http://www.gnu.org/licenses/>.
 
+(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)
@@ -28,6 +31,6 @@
     (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))
+    (shell-command (concat "mymail --output " mbox-name " " args))
     (vm-visit-folder mbox-name t)
   ))