Function: mairix-update-database
mairix-update-database is an autoloaded, interactive and byte-compiled
function defined in mairix.el.gz.
Signature
(mairix-update-database)
Documentation
Call mairix for updating the database for SERVERS.
Mairix will be called asynchronously unless
mairix-synchronous-update is t. Mairix will be called with
mairix-update-options.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/net/mairix.el.gz
;;;###autoload
(defun mairix-update-database ()
"Call mairix for updating the database for SERVERS.
Mairix will be called asynchronously unless
`mairix-synchronous-update' is t. Mairix will be called with
`mairix-update-options'."
(interactive)
(let ((commandsplit (split-string mairix-command))
args)
(if mairix-synchronous-update
(progn
(setq args (append (list (car commandsplit) nil
(get-buffer-create mairix-output-buffer)
nil)))
(if (> (length commandsplit) 1)
(setq args (append args
(cdr commandsplit)
mairix-update-options))
(setq args (append args mairix-update-options)))
(apply #'call-process args))
(progn
(message "Updating mairix database...")
(setq args (append (list "mairixupdate" (get-buffer-create mairix-output-buffer)
(car commandsplit))))
(if (> (length commandsplit) 1)
(setq args (append args (cdr commandsplit) mairix-update-options))
(setq args (append args mairix-update-options)))
(set-process-sentinel
(apply #'start-process args)
#'mairix-sentinel-mairix-update-finished)))))