* cosmetics
This commit is contained in:
@ -291,6 +291,9 @@ updated as well, with all processed sexp data removed."
|
|||||||
(setq sexp (mu4e-proc-eat-sexp-from-buf)))))
|
(setq sexp (mu4e-proc-eat-sexp-from-buf)))))
|
||||||
|
|
||||||
|
|
||||||
|
;; error codes are defined in src/mu-util.h
|
||||||
|
;;(defconst mu4e-xapian-empty 19 "Error code: xapian is empty/non-existent")
|
||||||
|
|
||||||
(defun mu4e-proc-sentinel (proc msg)
|
(defun mu4e-proc-sentinel (proc msg)
|
||||||
"Function that will be called when the mu-server process
|
"Function that will be called when the mu-server process
|
||||||
terminates."
|
terminates."
|
||||||
@ -310,10 +313,10 @@ terminates."
|
|||||||
((eq code 11)
|
((eq code 11)
|
||||||
(message "Database is locked by another process"))
|
(message "Database is locked by another process"))
|
||||||
((eq code 19)
|
((eq code 19)
|
||||||
(message "Database is empty; try indexing some messages"))
|
(message "Database is empty or non-existent; try indexing some messages"))
|
||||||
(t (message (format "mu server process ended with exit code %d" code)))))
|
(t (message (format "mu server process ended with exit code %d" code)))))
|
||||||
(t
|
(t
|
||||||
(message "something bad happened to the mu server process")))))
|
(message "Something bad happened to the mu server process")))))
|
||||||
|
|
||||||
|
|
||||||
(defconst mu4e-proc-log-buffer-name "*mu4e-log*"
|
(defconst mu4e-proc-log-buffer-name "*mu4e-log*"
|
||||||
|
|||||||
@ -368,13 +368,15 @@ cmd_find (MuStore *store, MuQuery *query, GSList *args, GError **err)
|
|||||||
* ones; it seems we cannot get a sorted list of a subset of
|
* ones; it seems we cannot get a sorted list of a subset of
|
||||||
* the result --> needs investigation, this is a
|
* the result --> needs investigation, this is a
|
||||||
* work-around */
|
* work-around */
|
||||||
if (!(iter = mu_query_run (query, (const char*)args->data, TRUE,
|
iter = mu_query_run (query, (const char*)args->data, TRUE,
|
||||||
MU_MSG_FIELD_ID_DATE, TRUE, -1, err)))
|
MU_MSG_FIELD_ID_DATE, TRUE, -1, err);
|
||||||
|
if (!iter)
|
||||||
|
return server_error (err, MU_ERROR_INTERNAL,
|
||||||
|
"couldn't get iterator");
|
||||||
|
|
||||||
/* if (!(iter = mu_query_run (query, (const char*)args->data, TRUE, */
|
/* if (!(iter = mu_query_run (query, (const char*)args->data, TRUE, */
|
||||||
/* MU_MSG_FIELD_ID_DATE, TRUE, maxnum, err))) */
|
/* MU_MSG_FIELD_ID_DATE, TRUE, maxnum, err))) */
|
||||||
return server_error (err, MU_ERROR_INTERNAL,
|
|
||||||
"couldn't get iterator");
|
|
||||||
|
|
||||||
/* return results + the number of results found */
|
/* return results + the number of results found */
|
||||||
send_expr ("(:found %u)\n", output_found_sexps (iter, maxnum));
|
send_expr ("(:found %u)\n", output_found_sexps (iter, maxnum));
|
||||||
|
|||||||
Reference in New Issue
Block a user