Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: David <de_bb@arcor.de>
To: info-gnus-english@gnu.org
Subject: Re: mairix search results
Date: Wed, 29 Aug 2007 13:58:42 +0200	[thread overview]
Message-ID: <kzlkbua6x9.fsf@musil.physik3.gwdg.de> (raw)
In-Reply-To: <m0hcmik33t.fsf@gmail.com>

Austin Frank <austin.frank@gmail.com> writes:
> By default, mairix overwrites old results on each new search.  Gnus,
> however, remembers all of the messages that have ever been in the
> directory.  If the first search I run after creating the ~/Mairix
> directory returns 100 results, and the next search returns 50, I expect
> to see 50 as the number of messages in the group, but instead see 150.

I have written a Gnus backend for mairix (nnmairix.el) which I
hope to release shortly. I still have to resolve some minor bugs and
write some documentation. 

Writing this backend was more complicated than I thought due to the
problems you describe. Gnus isn't really amused when things are
happening behind its back.

> Is there a way to tell the nnmaildir backend to forget about the
> messages it has seen before?

After much fiddling I hope I resolved the issue by deleting and
re-creating the group using the nnmaildir backend. However, this leads
to a new problem since the article numbers then start again at 1, but
this is corrected by the nnmairix backend. If someone knows an easier
way I'd love to hear about it.

> I also have the option of serving maildir formatted mailboxes over imap
> using a local installation of Dovecot.  Would forgetting previously seen
> messages be possible with the nnimap backend?

I also happen to use Dovecot together with mairix, and it isn't really
amused either when the contents of mailboxes suddenly changes, so I also
use "delete and re-create mailbox" with nnimap before calling mairix.

Using nnmairix with nnml doesn't help, since mairix doesn't necessarily
produce consecutive article numbers, so the article count is usually wrong
(but gets corrected after you have entered the group).

-David

      reply	other threads:[~2007-08-29 11:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-29 11:24 Austin Frank
2007-08-29 11:58 ` David [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=kzlkbua6x9.fsf@musil.physik3.gwdg.de \
    --to=de_bb@arcor.de \
    --cc=info-gnus-english@gnu.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).