Function: nnmairix-create-search-group

nnmairix-create-search-group is an interactive and byte-compiled function defined in nnmairix.el.gz.

Signature

(nnmairix-create-search-group SERVER GROUP QUERY THREADS)

Documentation

Create on SERVER nnmairix search group GROUP with QUERY.

If THREADS is t, include whole threads from found messages. If called interactively, user will be asked for parameters.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/nnmairix.el.gz
;;; === Interactive functions

(defun nnmairix-create-search-group (server group query threads)
  "Create on SERVER nnmairix search group GROUP with QUERY.
If THREADS is t, include whole threads from found messages.  If
called interactively, user will be asked for parameters."
  (interactive
   (list
    (gnus-server-to-method (car (nnmairix-get-server)))
    (read-string "Group name: ")
    (read-string "Query: ")
    (y-or-n-p "Include threads? ")))
  (when (and (stringp query)
	     (string-match "\\s-" query))
    (setq query (split-string query)))
  (setq query (ensure-list query))
  (when (and server group query)
    (let ((groupname (gnus-group-prefixed-name group server))
          ) ;; info
      (with-current-buffer gnus-group-buffer
	(gnus-group-make-group group server)
	(gnus-group-set-parameter groupname 'query  query)
	(gnus-group-set-parameter groupname 'threads threads)
	(nnmairix-update-and-clear-marks groupname)))))