* read/unread counts of a group
@ 2011-01-02 18:56 Yuri D'Elia
2011-01-03 0:00 ` Lars Magne Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Yuri D'Elia @ 2011-01-02 18:56 UTC (permalink / raw)
To: ding
Hi everyone. Can somebody explain the format of (gnus-info-read group)?
it seems that getting the current article count of a group is
messy. Right now, I have to do:
(let* ( (name (gnus-info-group g))
(read (or
(and (listp (car (gnus-info-read g)))
(cdar (gnus-info-read g)))
(cdr (gnus-info-read g))))
(unread (gnus-group-unread name)) )
(when (and (numberp read) (numberp unread))
(+ read unread)))
to support all possible outputs of `gnus-info-read', then sum it to
(gnus-group-unread name) to get the total number of articles.
I wrote a little library to display popup notifications for new
messages:
http://www.thregr.org/~wavexx/hacks/gnus-desktop-notify/
I need the current article count to see if new messages were received
after the last check.
Thanks for any clarification.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: read/unread counts of a group
2011-01-02 18:56 read/unread counts of a group Yuri D'Elia
@ 2011-01-03 0:00 ` Lars Magne Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-01-03 0:00 UTC (permalink / raw)
To: ding
Yuri D'Elia <wavexx@users.sf.net> writes:
> Hi everyone. Can somebody explain the format of (gnus-info-read group)?
It's a range. See `gnus-range.el'.
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-03 0:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-02 18:56 read/unread counts of a group Yuri D'Elia
2011-01-03 0:00 ` Lars Magne 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).