Function: nnmairix-group-toggle-readmarks-this-group
nnmairix-group-toggle-readmarks-this-group is an interactive and
byte-compiled function defined in nnmairix.el.gz.
Signature
(nnmairix-group-toggle-readmarks-this-group &optional READMARKS)
Documentation
Toggle read/unread marks for this group.
If READMARKS is a positive number, articles will always be read. If READMARKS is a negative number, articles will always be unread. If READMARKS is t or zero, marks will stay unchanged.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/nnmairix.el.gz
(defun nnmairix-group-toggle-readmarks-this-group (&optional readmarks)
"Toggle read/unread marks for this group.
If READMARKS is a positive number, articles will always be read.
If READMARKS is a negative number, articles will always be unread.
If READMARKS is t or zero, marks will stay unchanged."
(interactive)
(let* ((group (gnus-group-group-name))
(method (gnus-find-method-for-group group))
(readmarks (or readmarks
(gnus-group-get-parameter group 'readmarks))))
(if (eq (car method) 'nnmairix)
(cond
((or (and (numberp readmarks) (< readmarks 0))
(eq readmarks 'read))
(gnus-group-set-parameter group 'readmarks 'unread)
(nnheader-message 3 "Articles in %s always unread." group))
((or (and (numberp readmarks) (> readmarks 0))
(not readmarks))
(gnus-group-set-parameter group 'readmarks 'read)
(nnheader-message 3 "Articles in %s always read." group))
(t
(gnus-group-set-parameter group 'readmarks nil)
(nnheader-message 3 "Read marks in %s stay unchanged." group)))
(error "This is no nnmairix group"))))