From: Tassilo Horn <tassilo@member.fsf.org>
To: ding@gnus.org
Subject: Re: How to open a summary buffer reliable?
Date: Thu, 11 Dec 2008 20:21:27 +0100 [thread overview]
Message-ID: <87tz9av7pk.fsf@thinkpad.tsdh.de> (raw)
In-Reply-To: <kz7i668sz2.fsf@randomsample.de> (David Engster's message of "Thu, 11 Dec 2008 19:30:41 +0100")
David Engster <deng@randomsample.de> writes:
>> So is that a bug in nnml or is it correct that only nnimap supports
>> it?
>
> I guess the beloved gnus-fixup-nnimap-unread-after-getting-new-news
> makes this work with nnimap, but not with nnml. I don't know how other
> back ends behave in this regard.
Ok.
>> Ideally I'd love to see that work for all backends supporting
>> deletion.
>
> This is all related to Gnus not knowing the actual article numbers.
Yes, I've thought that.
> nnml is tricky since it tries to avoid rebuilding the active
> information, this is why it usually recognizes this situation only
> after restarting Gnus. You can force rebuilding the active file by
> using nnml-generate-nov-databases-directory (which can be costly for
> large groups). This function expects a directory, not the group name,
> so you would have to extract that first. And then you would have to
> put this information in gnus-active-hashtb, maybe also in the cache
> via gnus-cache-possibly-update-active (maybe they're the same, I don't
> really know).
>
> Looks like work; maybe someone else knows how to do this easier?
That's what I'm doing now:
--8<---------------cut here---------------start------------->8---
(gnus-activate-group group t)
(unless (gnus-group-read-group 1 nil group)
;; Try again with a bigger number of messages.
(gnus-group-read-group (1- gnus-large-newsgroup) nil group))
(gnus-summary-goto-article article nil t))
--8<---------------cut here---------------end--------------->8---
Ok, it won't work if the user deleted the last (1- gnus-large-newsgroup)
articles, but how common is that?
I think I can live with that workaround unless somebody finds a proper
solution.
Bye,
Tassilo
prev parent reply other threads:[~2008-12-11 19:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-10 19:14 Tassilo Horn
2008-12-10 19:48 ` Reiner Steib
2008-12-10 20:45 ` Tassilo Horn
2008-12-10 21:52 ` David Engster
2008-12-11 8:11 ` Tassilo Horn
2008-12-11 16:39 ` Tassilo Horn
2008-12-11 18:30 ` David Engster
2008-12-11 19:21 ` Tassilo Horn [this message]
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=87tz9av7pk.fsf@thinkpad.tsdh.de \
--to=tassilo@member.fsf.org \
--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).