From: Simon Josefsson <jas@extundo.com>
Cc: ding@gnus.org
Subject: Re: `new' indicator for nnimap groups?
Date: Sun, 05 Aug 2001 22:31:58 +0200 [thread overview]
Message-ID: <ilud76ackox.fsf@barbar.josefsson.org> (raw)
In-Reply-To: <vafbsluzbm2.fsf@INBOX.auto.gnus.tok.lucy.cs.uni-dortmund.de> (Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "Sun, 05 Aug 2001 18:59:33 +0200")
Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:
> Simon Josefsson <jas@extundo.com> writes:
>
>> I've been running with my "new" mark patch for a while, and altough it
>> isn't perfect I've actually found it useful. So maybe you'd like to
>> test it.
>
> Very nice!
Try it for a week and tell me if you think it should be committed
(with the proper documentation of course) or not.
> Can it also set the `%' mark on the group in the group buffer? (I
> know it doesn't, but how difficult would it be to do that?) Hm.
> Probably it already works with nnimap-split-rule, but I use
> server-side splitting (with sieve).
The following does it. It's not exactly the same behaviour as nnmail.
In nnmail the indicator indicates whether nnmail has splitted mail
during this session or not. Instead this indicates if the server has
mail you've never seen. But fortunately the documentation is fuzzy
and I think we're still in agreement with this:
`m'
`%' (`gnus-new-mail-mark') if there has arrived new mail to the
group lately.
Index: nnimap.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/nnimap.el,v
retrieving revision 6.12
diff -u -u -w -u -w -r6.12 nnimap.el
--- nnimap.el 2001/07/27 01:29:36 6.12
+++ nnimap.el 2001/08/05 20:26:41
@@ -866,6 +866,10 @@
(or (member "\\NoSelect"
(imap-mailbox-get 'list-flags group nnimap-server-buffer))
(let ((info (nnimap-find-minmax-uid group 'examine)))
+ (when (> (or (imap-mailbox-get 'recent group
+ nnimap-server-buffer) 0)
+ 0)
+ (push (list (cons group 0)) nnmail-split-history))
(insert (format "\"%s\" %d %d y\n" group
(or (nth 2 info) 0)
(max 1 (or (nth 1 info) 1))))))))
next prev parent reply other threads:[~2001-08-05 20:31 UTC|newest]
Thread overview: 57+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-28 11:25 Kai Großjohann
2001-07-28 13:44 ` Simon Josefsson
2001-07-28 16:18 ` Kai Großjohann
2001-07-28 21:34 ` Amos Gouaux
2001-07-28 21:49 ` Karl Kleinpaste
2001-07-28 22:32 ` Kai Großjohann
2001-07-28 23:24 ` Simon Josefsson
2001-07-28 23:01 ` Simon Josefsson
2001-07-28 23:12 ` Kai Großjohann
2001-07-28 23:49 ` Simon Josefsson
2001-07-29 21:07 ` Kai Großjohann
2001-07-30 11:09 ` Simon Josefsson
2001-07-30 12:52 ` Kai Großjohann
2001-08-02 10:54 ` Simon Josefsson
2001-08-02 12:08 ` Kai Großjohann
2001-08-02 13:51 ` Simon Josefsson
2001-08-02 15:05 ` Kai Großjohann
2001-08-02 15:32 ` Simon Josefsson
2001-08-02 15:51 ` Kai Großjohann
2001-07-28 13:46 ` Amos Gouaux
2001-07-28 20:10 ` Nuutti Kotivuori
2001-08-05 13:15 ` Simon Josefsson
2001-08-05 16:59 ` Kai Großjohann
2001-08-05 20:31 ` Simon Josefsson [this message]
2001-08-11 17:01 ` Kai Großjohann
2001-08-11 23:00 ` Simon Josefsson
2001-08-12 16:59 ` Kai Großjohann
2001-08-12 17:41 ` Simon Josefsson
2001-08-12 18:03 ` Kai Großjohann
2001-08-17 20:34 ` Lars Magne Ingebrigtsen
2001-08-17 21:14 ` Simon Josefsson
2001-08-17 21:28 ` Lars Magne Ingebrigtsen
2001-08-17 22:01 ` Kai Großjohann
2001-08-17 22:23 ` Lars Magne Ingebrigtsen
2001-08-17 22:30 ` Paul Jarc
2001-08-17 22:35 ` Lars Magne Ingebrigtsen
2001-08-17 22:44 ` Paul Jarc
2001-08-17 22:46 ` Lars Magne Ingebrigtsen
2001-08-18 3:28 ` Paul Jarc
2001-08-18 8:46 ` Simon Josefsson
2001-08-19 3:32 ` Paul Jarc
2001-08-17 23:02 ` Kai Großjohann
2001-08-18 9:20 ` Simon Josefsson
2001-08-18 9:47 ` Lars Magne Ingebrigtsen
2001-08-27 16:59 ` Sudish Joseph
2001-08-27 17:46 ` Simon Josefsson
2001-08-28 0:21 ` Amos Gouaux
2001-08-28 0:28 ` Amos Gouaux
2001-08-17 23:00 ` Kai Großjohann
2001-08-17 23:02 ` Lars Magne Ingebrigtsen
2001-08-18 0:44 ` Joe Casadonte
2001-08-18 2:27 ` Paul Jarc
2001-08-18 11:44 ` Joe Casadonte
2001-08-18 9:04 ` Simon Josefsson
2001-08-27 16:47 ` Sudish Joseph
2001-08-18 0:41 ` Joe Casadonte
2001-08-18 15:34 ` Kai Großjohann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ilud76ackox.fsf@barbar.josefsson.org \
--to=jas@extundo.com \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).