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
(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
arbitrary shell-commands can be used.
When set to the literal string \"true\" (the default), the
command simply finishes successfully (running the 'true' command)
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
:group 'mu4e
:safe 'stringp)
@ -126,8 +126,8 @@ changed")
If non-nil, this is a plist of the form:
\(
:processed <number of messages processed>
:updated <number of messages updated (incl. new messages)
:checked <number of messages processed> (checked whether up-to-date)
:updated <number of messages updated/added
:cleaned-up <number of stale messages removed from store
:stamp <emacs (current-time) timestamp for the status)")
@ -189,7 +189,6 @@ throbber."
(with-selected-window procwin
(goto-char (point-max)))))))
(defun mu4e-index-message (frm &rest args)
"Display FRM with ARGS like `mu4e-message' for index messages.
However, if `mu4e-hide-index-messages' is non-nil, do not display anything."

View File

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

View File

@ -3621,10 +3621,10 @@ We can now run @command{mu} to make sure things work:
@verbatim
$ mu index
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: 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)
@end verbatim