:type 'string)
(defun mymail/vm-visit-folder (param)
+ "Read a comma-separated list of search requests for mymail,
+create a temporary mbox with the resulting mails, and open it in
+vm with `vm-visit-folder'.
+
+The string `mymail/default-search-request' is automatically
+concatenated to the provided request, except if the request is
+prefaced with \\."
(interactive
(list (read-string "mymail: " nil 'mymail-vm-history)))
(lambda (searche-request)
(if (not (string= searche-request ""))
(list "-s" searche-request)))
- (split-string (concat param "," mymail/default-search-request) ",")
+ (if (string= (substring param 0 1) "\\")
+ (split-string (substring param 1 nil))
+ (split-string (concat param "," mymail/default-search-request) ","))
)))
)