--- nnmairix.el~ 2008-02-26 21:42:09 +0000 +++ nnmairix.el 2008-02-27 02:32:03 +0000 @@ -336,18 +336,19 @@ ;;; === Internal variables -;; Regexp for mairix groups on back end -(setq nnmairix-group-regexp (format "%s-\\(.*\\)-[0-9]+" nnmairix-group-prefix)) +(defvar nnmairix-group-regexp + (format "%s-\\(.*\\)-[0-9]+" nnmairix-group-prefix) + "Regexp for mairix groups on back end.") + +(defvar nnmairix-valid-backends '(nnimap nnml nnmaildir) + "Back ends (hopefully...) supported by nnmairix. +Other backends might or might not work.") -;; Back ends (hopefully...) supported by nnmairix. -;; Other backends might or might not work. -(setq nnmairix-valid-backends '(nnimap nnml nnmaildir)) +(defvar nnmairix-last-server nil + "Last chosen server.") -;; Last chosen server -(setq nnmairix-last-server nil) - -;; Current server -(setq nnmairix-current-server nil) +(defvar nnmairix-current-server nil + "Current server.") ;;; === Gnus backend functions @@ -843,6 +844,9 @@ (set-process-sentinel (apply 'start-process args) 'nnmairix-sentinel-mairix-update-finished)))))) +(eval-and-compile + (autoload 'gnus-registry-fetch-group "gnus-registry")) + (defun nnmairix-goto-original-article (&optional no-registry) "Jump to the original group and display article. The original group of the article is first determined with the @@ -974,7 +978,7 @@ "Request FOLDER on backend for nnmairix QUALGROUP and article number correction." (save-excursion (nnmairix-call-backend - "request-group" folder nnmairix-backend-server fast) + "request-group" folder nnmairix-backend-server) (set-buffer nnmairix-mairix-output-buffer) (goto-char (point-min)) (re-search-forward "^Matched.*messages") @@ -1006,7 +1010,7 @@ (gnus-group-set-parameter qualgroup 'numcorr (list nil 0 high)))) (erase-buffer) - (insert (format "%d %d %d %d %s" status total low high group)) + (insert (format "%d %d %d %d %s" status total low high qualgroup)) t) (progn (nnheader-report