* Showing for certain groups the number of emails instead of the number of unread emails?
@ 2014-09-12 7:13 Rainer M Krug
2015-01-27 4:56 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Rainer M Krug @ 2014-09-12 7:13 UTC (permalink / raw)
To: ding
[-- Attachment #1: Type: text/plain, Size: 1650 bytes --]
Hi
I am using the following gnus-groupline-format
,----
| (defvar gnus-user-format-function-g-prev "" "")
| (defun empty-common-prefix (left right)
| "Given `left' '(\"foo\" \"bar\" \"fie\") and `right' '(\"foo\"
| \"bar\" \"fum\"), return '(\" \" \" \" \"fum\")."
| (if (and (cdr right) ; always keep the last part of right
| (equal (car left) (car right)))
| (cons (make-string (length (car left)) ? )
| (empty-common-prefix (cdr left) (cdr right)))
| right))
| (defun gnus-user-format-function-g (arg)
| "The full group name, but if it starts with a previously seen
| prefix, empty that prefix."
| (if (equal gnus-user-format-function-g-prev gnus-tmp-group) ; line-format is updated on exiting the summary, making prev equal this
| gnus-tmp-group
| (let* ((prev (split-string-and-unquote gnus-user-format-function-g-prev "\\."))
| (this (split-string-and-unquote gnus-tmp-group "\\.")))
| (setq gnus-user-format-function-g-prev gnus-tmp-group)
| (combine-and-quote-strings
| (empty-common-prefix prev this)
| "."))))
| (setq gnus-group-line-format "%M%S%p%P%5y:%B%(%ug%)\n")
`----
taken from [1]. Now I would need to see of some groups (all the ones
which have the substring [Maildir] in the name) to see the number of
emails instead of the number of unread emails. How can I achieve this?
Thanks,
Rainer
Footnotes:
[1] http://www.emacswiki.org/emacs/GnusFormatting#toc8
--
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982
[-- Attachment #2: Type: application/pgp-signature, Size: 494 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-27 4:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-12 7:13 Showing for certain groups the number of emails instead of the number of unread emails? Rainer M Krug
2015-01-27 4:56 ` Lars Ingebrigtsen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).