1
0
mirror of https://github.com/djcb/mu.git synced 2024-06-27 07:35:16 +02:00

mu4e: use 'checked' instead of 'processed'

Update to the new name.
This commit is contained in:
Dirk-Jan C. Binnema 2021-11-10 21:53:06 +02:00
parent 503d7224e0
commit ef25637128
3 changed files with 11 additions and 12 deletions

View File

@ -33,14 +33,14 @@
;;; Customization ;;; Customization
(defcustom mu4e-get-mail-command "true" (defcustom mu4e-get-mail-command "true"
"Shell command to run to retrieve new mail. "Shell command for retrieving new mail.
Common values are \"offlineimap\", \"fetchmail\" or \"mbsync\", but Common values are \"offlineimap\", \"fetchmail\" or \"mbsync\", but
arbitrary shell-commands can be used. arbitrary shell-commands can be used.
When set to the literal string \"true\" (the default), the When set to the literal string \"true\" (the default), the
command simply finishes successfully (running the 'true' command) command simply finishes successfully (running the 'true' command)
without retrieving any mail. This can be useful when mail is without retrieving any mail. This can be useful when mail is
already retrieved in another way." already retrieved in another way, such as a local MDA."
:type 'string :type 'string
:group 'mu4e :group 'mu4e
:safe 'stringp) :safe 'stringp)
@ -126,8 +126,8 @@ changed")
If non-nil, this is a plist of the form: If non-nil, this is a plist of the form:
\( \(
:processed <number of messages processed> :checked <number of messages processed> (checked whether up-to-date)
:updated <number of messages updated (incl. new messages) :updated <number of messages updated/added
:cleaned-up <number of stale messages removed from store :cleaned-up <number of stale messages removed from store
:stamp <emacs (current-time) timestamp for the status)") :stamp <emacs (current-time) timestamp for the status)")
@ -189,7 +189,6 @@ throbber."
(with-selected-window procwin (with-selected-window procwin
(goto-char (point-max))))))) (goto-char (point-max)))))))
(defun mu4e-index-message (frm &rest args) (defun mu4e-index-message (frm &rest args)
"Display FRM with ARGS like `mu4e-message' for index messages. "Display FRM with ARGS like `mu4e-message' for index messages.
However, if `mu4e-hide-index-messages' is non-nil, do not display anything." However, if `mu4e-hide-index-messages' is non-nil, do not display anything."

View File

@ -192,14 +192,14 @@ invoke
"Update the status message." "Update the status message."
(setq mu4e-index-update-status (setq mu4e-index-update-status
`(:tstamp ,(current-time) `(:tstamp ,(current-time)
:checked ,(plist-get info :checked)
:updated ,(plist-get info :updated) :updated ,(plist-get info :updated)
:processed ,(plist-get info :processed)
:cleaned-up ,(plist-get info :cleaned-up)))) :cleaned-up ,(plist-get info :cleaned-up))))
(defun mu4e--info-handler (info) (defun mu4e--info-handler (info)
"Handler function for (:INFO ...) sexps received from server." "Handler function for (:INFO ...) sexps received from server."
(let* ((type (plist-get info :info)) (let* ((type (plist-get info :info))
(processed (plist-get info :processed)) (checked (plist-get info :checked))
(updated (plist-get info :updated)) (updated (plist-get info :updated))
(cleaned-up (plist-get info :cleaned-up)) (cleaned-up (plist-get info :cleaned-up))
(mainbuf (get-buffer mu4e-main-buffer-name))) (mainbuf (get-buffer mu4e-main-buffer-name)))
@ -208,13 +208,13 @@ invoke
((eq type 'index) ((eq type 'index)
(if (eq (plist-get info :status) 'running) (if (eq (plist-get info :status) 'running)
(mu4e-index-message (mu4e-index-message
"Indexing... processed %d, updated %d" processed updated) "Indexing... checked %d, updated %d" checked updated)
(progn ;; i.e. 'complete (progn ;; i.e. 'complete
(mu4e--update-status info) (mu4e--update-status info)
(mu4e-index-message (mu4e-index-message
"%s completed; processed %d, updated %d, cleaned-up %d" "%s completed; checked %d, updated %d, cleaned-up %d"
(if mu4e-index-lazy-check "Lazy indexing" "Indexing") (if mu4e-index-lazy-check "Lazy indexing" "Indexing")
processed updated cleaned-up) checked updated cleaned-up)
(run-hooks 'mu4e-index-updated-hook) (run-hooks 'mu4e-index-updated-hook)
;; backward compatibility... ;; backward compatibility...
(unless (zerop (+ updated cleaned-up)) (unless (zerop (+ updated cleaned-up))

View File

@ -3621,10 +3621,10 @@ We can now run @command{mu} to make sure things work:
@verbatim @verbatim
$ mu index $ mu index
mu: indexing messages under /home/foo/Maildir [/home/foo/.cache/mu/xapian] mu: indexing messages under /home/foo/Maildir [/home/foo/.cache/mu/xapian]
| processing mail; processed: 520; updated/new: 520, cleaned-up: 0 | processing mail; checked: 520; updated/new: 520, cleaned-up: 0
mu: elapsed: 3 second(s), ~ 173 msg/s mu: elapsed: 3 second(s), ~ 173 msg/s
mu: cleaning up messages [/home/foo/.cache/mu/xapian] mu: cleaning up messages [/home/foo/.cache/mu/xapian]
/ processing mail; processed: 520; updated/new: 0, cleaned-up: 0 / processing mail; checked: 520; updated/new: 0, cleaned-up: 0
mu: elapsed: 0 second(s) mu: elapsed: 0 second(s)
@end verbatim @end verbatim