Function: nnmairix-request-group-with-article-number-correction
nnmairix-request-group-with-article-number-correction is a
byte-compiled function defined in nnmairix.el.gz.
Signature
(nnmairix-request-group-with-article-number-correction FOLDER QUALGROUP)
Documentation
Request FOLDER on back end for nnmairix QUALGROUP and article number correction.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/nnmairix.el.gz
;;; ==== Helper functions
(defun nnmairix-request-group-with-article-number-correction (folder qualgroup)
"Request FOLDER on back end for nnmairix QUALGROUP and article number correction."
(save-excursion
(nnmairix-call-backend "request-group" folder nnmairix-backend-server)
(set-buffer nnmairix-mairix-output-buffer)
(goto-char (point-min))
(re-search-forward "^Matched.*messages")
(nnheader-message 7 (match-string 0))
(set-buffer nntp-server-buffer)
(goto-char (point-min))
(let ((status (read (current-buffer)))
(total (read (current-buffer)))
(low (read (current-buffer)))
(high (read (current-buffer)))
(corr (gnus-group-get-parameter qualgroup 'numcorr t)))
(if (= status 211)
(progn
;; Article number correction
(if (and corr
(> (+ (car (cddr corr)) high) 0))
(progn
(when (car corr) ;Group has changed
(setq corr
(list nil
(car (cddr corr))
(+ (car (cddr corr)) high)))
(gnus-group-set-parameter
qualgroup 'numcorr corr))
(setq low (+ low (cadr corr))
high (+ high (cadr corr))))
(when (member nnmairix-backend
nnmairix-delete-and-create-on-change)
(gnus-group-set-parameter
qualgroup 'numcorr (list nil 0 high))))
(erase-buffer)
(insert (format "%d %d %d %d %s" status total low high
(gnus-group-real-name qualgroup)))
t)
(progn
(nnheader-report
'nnmairix "Error calling back end on group %s" folder)
nil)))))