* New mail indicator @ 2000-01-06 19:37 Roman Belenov 2000-01-06 19:53 ` Karl Kleinpaste 0 siblings, 1 reply; 16+ messages in thread From: Roman Belenov @ 2000-01-06 19:37 UTC (permalink / raw) Hello, Is there an easy way to add some indicator (like some text in the modeline of all buffers) when there is new unread mail in GNUS ? -- With regards, Roman. ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: New mail indicator 2000-01-06 19:37 New mail indicator Roman Belenov @ 2000-01-06 19:53 ` Karl Kleinpaste 2000-01-07 8:28 ` Shigeki Uno 0 siblings, 1 reply; 16+ messages in thread From: Karl Kleinpaste @ 2000-01-06 19:53 UTC (permalink / raw) M-x display-time RET ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: New mail indicator 2000-01-06 19:53 ` Karl Kleinpaste @ 2000-01-07 8:28 ` Shigeki Uno 2000-01-07 9:47 ` Roman Belenov 0 siblings, 1 reply; 16+ messages in thread From: Shigeki Uno @ 2000-01-07 8:28 UTC (permalink / raw) Karl Kleinpaste <karl@justresearch.com> writes: > M-x display-time RET Or add (display-time) to .emacs file. -- Shigeki Uno (鵜野茂樹) mailto:shigeki@mediawars.ne.jp ICQ UIN 43741937 ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: New mail indicator 2000-01-07 8:28 ` Shigeki Uno @ 2000-01-07 9:47 ` Roman Belenov 2000-01-07 10:00 ` Kai Großjohann [not found] ` <ur9fu19g2.fsf@eai-delta.de> 0 siblings, 2 replies; 16+ messages in thread From: Roman Belenov @ 2000-01-07 9:47 UTC (permalink / raw) Cc: ding Shigeki Uno <shigeki@mediawars.ne.jp> writes: > Karl Kleinpaste <karl@justresearch.com> writes: > > > M-x display-time RET > > Or add (display-time) to .emacs file. > And what should I expect to see in the modeline ? At this moment I have about 100 unread messages in GNUS but I can't find any indication. -- With regards, Roman. ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: New mail indicator 2000-01-07 9:47 ` Roman Belenov @ 2000-01-07 10:00 ` Kai Großjohann 2000-01-07 10:10 ` Roman Belenov [not found] ` <ur9fu19g2.fsf@eai-delta.de> 1 sibling, 1 reply; 16+ messages in thread From: Kai Großjohann @ 2000-01-07 10:00 UTC (permalink / raw) Cc: Shigeki Uno, ding Roman Belenov <roman@nstl.nnov.ru> writes: > And what should I expect to see in the modeline ? At this moment I > have about 100 unread messages in GNUS but I can't find any indication. This tells you whether you have mail in /var/mail/jrl. It does not tell you about the number of unread messages in Gnus. kai -- A large number of young women don't trust men with beards. (BFBS Radio) ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: New mail indicator 2000-01-07 10:00 ` Kai Großjohann @ 2000-01-07 10:10 ` Roman Belenov 2000-01-07 10:17 ` Kai Großjohann 2000-01-07 18:15 ` François Pinard 0 siblings, 2 replies; 16+ messages in thread From: Roman Belenov @ 2000-01-07 10:10 UTC (permalink / raw) Cc: ding Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes: > This tells you whether you have mail in /var/mail/jrl. It does not > tell you about the number of unread messages in Gnus. > So it's not related to my question (I don't have /var/... at all under Windows NT). Is there a way to indicate that there are unread messages in Gnus ? -- With regards, Roman. ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: New mail indicator 2000-01-07 10:10 ` Roman Belenov @ 2000-01-07 10:17 ` Kai Großjohann 2000-01-07 10:34 ` Roman Belenov 2000-01-07 13:02 ` Shigeki Uno 2000-01-07 18:15 ` François Pinard 1 sibling, 2 replies; 16+ messages in thread From: Kai Großjohann @ 2000-01-07 10:17 UTC (permalink / raw) Cc: ding Roman Belenov <roman@nstl.nnov.ru> writes: > So it's not related to my question (I don't have /var/... at all under > Windows NT). Is there a way to indicate that there are unread messages > in Gnus ? Well, I think there is no predefined functionality in Gnus for doing this, but try M-: (gnus-group-unread "nnml:mail.misc") RET -- does that return a useful value? (You might wish to substitute another group name rather than nnml:mail.misc.) And then, there is M-: (gnus-topic-unread "Gnus") RET which returns the number of unread messages in that topic. But I think it does not make sense to show the number of unread messages in Gnus, except maybe if you're using the demon. Are you a demonic Gnus user? Normally, I think it would make more sense to have a program which contacts the POP server every now and then to determine the number of messages waiting there. Or maybe the IMAP server. Maybe the nice package epop3mail.el from Franklin Lee provides that functionality for POP? Dunno about IMAP. kai -- A large number of young women don't trust men with beards. (BFBS Radio) ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: New mail indicator 2000-01-07 10:17 ` Kai Großjohann @ 2000-01-07 10:34 ` Roman Belenov 2000-01-07 13:02 ` Shigeki Uno 1 sibling, 0 replies; 16+ messages in thread From: Roman Belenov @ 2000-01-07 10:34 UTC (permalink / raw) Cc: ding Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes: > Well, I think there is no predefined functionality in Gnus for doing > this, but try M-: (gnus-group-unread "nnml:mail.misc") RET -- does > that return a useful value? (You might wish to substitute another > group name rather than nnml:mail.misc.) And then, there is M-: > (gnus-topic-unread "Gnus") RET which returns the number of unread > messages in that topic. Thanks, these functions should suffice. > But I think it does not make sense to show the number of unread > messages in Gnus, except maybe if you're using the demon. Are you a > demonic Gnus user? Yes. Actually, I've just started using Gnus as my mail reader; but my previous reader checked POP3 mailbox (getting new mail) once a while so I enabled similar functionality in Gnus. > Normally, I think it would make more sense to have a program which > contacts the POP server every now and then to determine the number of > messages waiting there. > Or maybe the IMAP server. Maybe the nice > package epop3mail.el from Franklin Lee provides that functionality for > POP? Dunno about IMAP. Well, maybe just polling POP3 server will be more useful - I'll try it too. -- With regards, Roman. ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: New mail indicator 2000-01-07 10:17 ` Kai Großjohann 2000-01-07 10:34 ` Roman Belenov @ 2000-01-07 13:02 ` Shigeki Uno 2000-01-07 16:56 ` Roman Belenov 1 sibling, 1 reply; 16+ messages in thread From: Shigeki Uno @ 2000-01-07 13:02 UTC (permalink / raw) Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes: > Roman Belenov <roman@nstl.nnov.ru> writes: > > > So it's not related to my question (I don't have /var/... at all under > > Windows NT). Is there a way to indicate that there are unread messages > > in Gnus ? > > Well, I think there is no predefined functionality in Gnus for doing > this, but try M-: (gnus-group-unread "nnml:mail.misc") RET -- does > that return a useful value? (You might wish to substitute another > group name rather than nnml:mail.misc.) And then, there is M-: > (gnus-topic-unread "Gnus") RET which returns the number of unread > messages in that topic. Well, in group buffer, I can usually see how many unread messages are in each topics(?) like this: 5: fj.editor.emacs 000107 2: fj.editor.xemacs 000107 12: fj.os.linux 000107 36: nnml:ML.gnus 000107 8: nnml:ML.i386 000107 1: nnml:ML.mac68k 000107 4: nnml:ML.macML 000107 1: nnml:ML.yokohama 000106 1: nnml:MM.Mag2 991231 1: nnml:MM.WebCatch 000107 1: nnml:MM.meeting 991229 # note: I'm a user of *NetBSD/mac68k* and get mails from pop server using *fetchpop* (=mail retrieving programs). And in group buffer, I type *g* so that I can get mails from /var/mail/shigeki and split mails. Isn't that what you wanna do ? -- Shigeki Uno mailto:shigeki@mediawars.ne.jp ICQ UIN 43741937 ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: New mail indicator 2000-01-07 13:02 ` Shigeki Uno @ 2000-01-07 16:56 ` Roman Belenov 2000-01-07 17:38 ` Jody M. Klymak 0 siblings, 1 reply; 16+ messages in thread From: Roman Belenov @ 2000-01-07 16:56 UTC (permalink / raw) Cc: ding Shigeki Uno <shigeki@mediawars.ne.jp> writes: > Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes: > > > Roman Belenov <roman@nstl.nnov.ru> writes: > > > > > So it's not related to my question (I don't have /var/... at all under > > > Windows NT). Is there a way to indicate that there are unread messages > > > in Gnus ? > > > > Well, in group buffer, I can usually see how many unread messages are > in each topics(?) like this: Now, I wanted to see if new mail have arrived without switching to Gnus (I use Gnus daemon to get new mail). BTW I altered my mode line to show the number of unread messages (if there are any), but encountered the following problem: is there a hook that is called *after* the article was marked as read. I defined a function that changes the modeline and call it after the new mail was obtained (via gnus-after-getting-new-news-hook), but it also should be called when articles are marked as read so what mode line will always present correct number of unread articles; I tried some hooks like gnus-mark-article-hook without success. Are there any suitable hooks for this ? Also I found that functions mentioned by Kai (gnus-topic-unread etc.) are not even mentioned in the texinfo documentation, although they are quite useful. -- With regards, Roman. ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: New mail indicator 2000-01-07 16:56 ` Roman Belenov @ 2000-01-07 17:38 ` Jody M. Klymak 2000-01-07 18:53 ` Roman Belenov 0 siblings, 1 reply; 16+ messages in thread From: Jody M. Klymak @ 2000-01-07 17:38 UTC (permalink / raw) Cc: Shigeki Uno, ding Roman, Is it possible to modify the demon to update the modeline? i.e. I have the following running under the gnus-use-demon... (defun gnus-demon-scan-mail-groups1 () (save-window-excursion (when (gnus-alive-p) (save-excursion (set-buffer gnus-group-buffer) (gnus-group-get-new-news 1))))) Is there a way to count how many messages are in the group-1 groups and then change the modeline? It would't update the modeline directly after your ead your messages, but it would next time you ran the demon. Let us know what you come up with - this would be a fun thing to have, Cheers, Jody RB> BTW I altered my mode line to show the number of unread RB> messages (if there are any), but encountered the following RB> problem: is there a hook that is called *after* the article RB> was marked as read. I defined a function that changes the RB> modeline and call it after the new mail was obtained (via RB> gnus-after-getting-new-news-hook), but it also should be RB> called when articles are marked as read so what mode line will RB> always present correct number of unread articles; I tried some RB> hooks like gnus-mark-article-hook without success. Are there RB> any suitable hooks for this ? -- Jody Klymak APL/School of Oceanography, Doctoral Candidate University of Washington mailto:jklymak@apl.washington.edu (206)-685-9080 http://www.ocean.washington.edu/people/grads/jklymak/ ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: New mail indicator 2000-01-07 17:38 ` Jody M. Klymak @ 2000-01-07 18:53 ` Roman Belenov 0 siblings, 0 replies; 16+ messages in thread From: Roman Belenov @ 2000-01-07 18:53 UTC (permalink / raw) Cc: ding "Jody M. Klymak" <jklymak@apl.washington.edu> writes: > Roman, > > Is it possible to modify the demon to update the modeline? i.e. I > have the following running under the gnus-use-demon... > > (defun gnus-demon-scan-mail-groups1 () > (save-window-excursion > (when (gnus-alive-p) > (save-excursion > (set-buffer gnus-group-buffer) > (gnus-group-get-new-news 1))))) > > Is there a way to count how many messages are in the group-1 groups > and then change the modeline? It would't update the modeline directly > after your ead your messages, but it would next time you ran the > demon. I've added the following to my .gnus to add the number of unread messages to the modeline (all my mail groups are under "Mail" topic): (setq my-gnus-unread-mail-articles-p nil) (setq my-gnus-unread-mail-articles "0") (defun my-update-gnus-mode-line () (let ((unread-articles (gnus-topic-unread "Mail"))) (setq my-gnus-unread-mail-articles-p (> unread-articles 0)) (setq my-gnus-unread-mail-articles (format "%d" unread-articles)) (force-mode-line-update))) (add-hook 'gnus-after-getting-new-news-hook 'my-update-gnus-mode-line) (or (boundp 'my-gnus-mode-line-activated) (progn (setq my-gnus-mode-line-format '(my-gnus-unread-mail-articles-p ("Unread: " my-gnus-unread-mail-articles " "))) (setq global-mode-string (cons my-gnus-mode-line-format global-mode-string)))) (setq my-gnus-mode-line-activated t) Note that the modeline is not changed then articles are read since I couldn't find suitable hook. -- With regards, Roman. ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: New mail indicator 2000-01-07 10:10 ` Roman Belenov 2000-01-07 10:17 ` Kai Großjohann @ 2000-01-07 18:15 ` François Pinard 2000-01-07 18:24 ` Kai Großjohann 1 sibling, 1 reply; 16+ messages in thread From: François Pinard @ 2000-01-07 18:15 UTC (permalink / raw) Cc: Kai Großjohann, ding Roman Belenov <roman@nstl.nnov.ru> écrit: > Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes: > > This tells you whether you have mail in /var/mail/jrl. It does not > > tell you about the number of unread messages in Gnus. > So it's not related to my question (I don't have /var/... at all under > Windows NT). Is there a way to indicate that there are unread messages > in Gnus ? Hi, people. I'm not sure if this addresses your question, but there is a mechanism in Gnus to force the display of `%' in the Group buffer next to all groups which received messages and which you did not visit yet. Building on this, I customized the Topics mode to force the display of normally hidden groups, as long as they have that `%' mark. I also added the `%' command, both in the Group buffer and in the Summary buffer, that automatically selects and visits the next group which has such a `%' mark (and also gets new mail before doing so, if any arrived in the meantime). These things make Gnus, as a mail reader, significantly more useful for me, especially I also managed to sort most summaries with more recent articles first. I have many groups, many of which are hidden, and mail gets split a bit everywhere when received. I like to (at least try to) browse all incoming mail once, not too long after its receipt. P.S. - I thought I posted all this code here (but maybe a while ago...). Or maybe I sent it to Lars only? It might be. In any case, Lars told me that he wants to revisit, rethink and refresh this area of Gnus. -- François Pinard http://www.iro.umontreal.ca/~pinard ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: New mail indicator 2000-01-07 18:15 ` François Pinard @ 2000-01-07 18:24 ` Kai Großjohann 0 siblings, 0 replies; 16+ messages in thread From: Kai Großjohann @ 2000-01-07 18:24 UTC (permalink / raw) Cc: ding François Pinard <pinard@iro.umontreal.ca> writes: > [...] Building on this, I customized the Topics mode to force the > display of normally hidden groups, as long as they have that `%' > mark. [...] Could this be adapted such that Gnus always shows groups which have cached articles? I'd be very interested in that. (A solution requiring topic mode to be on is okay.) kai -- A large number of young women don't trust men with beards. (BFBS Radio) ^ permalink raw reply [flat|nested] 16+ messages in thread
[parent not found: <ur9fu19g2.fsf@eai-delta.de>]
* Re: New mail indicator [not found] ` <ur9fu19g2.fsf@eai-delta.de> @ 2000-01-07 10:15 ` Roman Belenov 2000-01-07 10:20 ` Roman Belenov 0 siblings, 1 reply; 16+ messages in thread From: Roman Belenov @ 2000-01-07 10:15 UTC (permalink / raw) Cc: ding Norbert Koch <n.koch@eai-delta.de> writes: > > And what should I expect to see in the modeline ? At this moment I > > have about 100 unread messages in GNUS but I can't find any indication. > > Uhm, where exactly do these files reside? display-time looks in your > spool file, something like /var/spool/mail/... In ~/News, there Gnus put them (they were received via POP3). -- With regards, Roman. ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: New mail indicator 2000-01-07 10:15 ` Roman Belenov @ 2000-01-07 10:20 ` Roman Belenov 0 siblings, 0 replies; 16+ messages in thread From: Roman Belenov @ 2000-01-07 10:20 UTC (permalink / raw) Cc: ding Roman Belenov <roman@nstl.nnov.ru> writes: > In ~/News, there Gnus put them (they were received via POP3). Sorry, of course they are in ~/Mail (although it doesn't matter). -- With regards, Roman. ^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2000-01-07 18:53 UTC | newest] Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2000-01-06 19:37 New mail indicator Roman Belenov 2000-01-06 19:53 ` Karl Kleinpaste 2000-01-07 8:28 ` Shigeki Uno 2000-01-07 9:47 ` Roman Belenov 2000-01-07 10:00 ` Kai Großjohann 2000-01-07 10:10 ` Roman Belenov 2000-01-07 10:17 ` Kai Großjohann 2000-01-07 10:34 ` Roman Belenov 2000-01-07 13:02 ` Shigeki Uno 2000-01-07 16:56 ` Roman Belenov 2000-01-07 17:38 ` Jody M. Klymak 2000-01-07 18:53 ` Roman Belenov 2000-01-07 18:15 ` François Pinard 2000-01-07 18:24 ` Kai Großjohann [not found] ` <ur9fu19g2.fsf@eai-delta.de> 2000-01-07 10:15 ` Roman Belenov 2000-01-07 10:20 ` Roman Belenov
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).