From: David Engster <deng@randomsample.de>
To: ding@gnus.org
Subject: Re: Automatically marking Gcc's as SEEN in nnimap
Date: Mon, 05 Jan 2009 00:57:46 +0100 [thread overview]
Message-ID: <874p0epqth.fsf@randomsample.de> (raw)
In-Reply-To: <m2aba6g0wg.fsf@asfast.com> (Lloyd Zusman's message of "Sun, 04 Jan 2009 17:30:07 -0500")
Lloyd Zusman <ljz@asfast.com> writes:
>> Works for me. You can enable IMAP logging (by setting imap-log) and see
>> if catching up produces commands like
>>
>> 3365 UID STORE 5031 +FLAGS (\Seen)
>
> Yes, I do see this in the *imap-log* buffer after issuing a
> `gnus-group-catchup-current' command. Here are the entries that got
> written to *imap-log* during the course of an invocation of that
> command:
>
> 1236 NOOP
> 1236 OK NOOP completed.
> 1237 UID STORE 3892 +FLAGS (\Seen)
> * 3296 FETCH (UID 3892 FLAGS (\Seen))
> 1237 OK Store completed.
Looks good.
> Furthermore, immediately after this command completes, the articles seem
> to be marked as SEEN (or at least they are not flagged as unread/unseen
> in the *Summary* buffer). However, if I then run a
> `gnus-group-get-new-news', the unread/unseen mark returns, and I can
> only make it go away by actually reading the article.
I would guess this behavior comes from gaps in the article numbers. This
problem can't currently properly dealt with and also depends on the used
IMAP server. Does doing M-g on that group fix the number?
> Could it be that some sort of local marks (local to gnus) don't get
> properly changed from un-SEEN to SEEN when I do
> `gnus-group-catchup-current' on a primary nnimap group, and could these
> local marks somehow get re-propagated back to the IMAP server during
> `gnus-group-get-new-news'?
No, they don't get re-propagated to the IMAP server. Gnus simply doesn't
have all the necessary information for correctly calculating the number
of unread articles. When you do gnus-group-get-new-news, Gnus will try
to determine the number of unread articles purely based on the active
information (ie. lowest and highest article number in a group), and on
the group info, which contains the article numbers of already seen
articles. When you do M-g on a group, it will also re-scan the group on
the server, which can sometimes correct this problem.
> I added this hook and re-ran `gnus-group-catchup-current', and I indeed
> see the newsgroup name in the message buffer without any
> `nnimap+SERVER:' prefix.
>
> And I double-checked: this is definitely a group that is managed by my
> nnimap primary back end.
>
> For the secondary back end, this hook causes `nnimap+SERVER:groupname' to
> be written in the message buffer.
This is the correct behavior.
Regards,
David
next prev parent reply other threads:[~2009-01-04 23:57 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-17 2:29 Lloyd Zusman
2008-12-17 9:45 ` Paul R
2008-12-18 0:57 ` Lloyd Zusman
2008-12-18 2:22 ` Dave Goldberg
2008-12-18 3:20 ` Lloyd Zusman
2008-12-26 19:27 ` Lloyd Zusman
2009-01-03 17:21 ` David Engster
2009-01-03 20:19 ` Lloyd Zusman
2009-01-03 23:15 ` David Engster
2009-01-04 20:14 ` Lloyd Zusman
2009-01-04 21:21 ` David Engster
2009-01-04 22:30 ` Lloyd Zusman
2009-01-04 23:57 ` David Engster [this message]
2009-01-05 1:40 ` Lloyd Zusman
2009-01-05 11:25 ` David Engster
2009-01-06 2:32 ` Lloyd Zusman
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=874p0epqth.fsf@randomsample.de \
--to=deng@randomsample.de \
--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).