Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Austin Frank <austin.frank@gmail.com>
To: info-gnus-english@gnu.org
Subject: mairix search results
Date: Wed, 29 Aug 2007 14:24:20 +0300	[thread overview]
Message-ID: <m0hcmik33t.fsf@gmail.com> (raw)

Hello!

I recently started using mairix, a mail indexing tool.  Mairix allows
keyword searching in the body, headers, or attachment titles of all
indexed mailboxes.

Search results are written out into a mailbox format of the user's
choice.  Options include maildir, ml, and mbox.  For maildir and ml
formatted results, the directories contain symlinks to the original
message; for mbox, copies are made.

I set my .mairixrc like so:

    base=~/Maildir
    maildir=.mail.academic:.mail.general:.mail.misc:.mail.personal
    mfolder=~/Mairix/results
    mformat=maildir
    database=~/mairix_index

performing a search inserts symlinks to the results in
~/Mairix/results/cur.

I added this directory to my list of secondary select methods

    (setq gnus-secondary-select-methods
          '((nnmaildir "mairix"
             (directory "~/Mairix"))
            ;; (other methods...)
           ))

News correctly notices the new "nnmaildir+mairix:results" group.  So far
so good.

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 gnus-agent set to t, which I guess could be affecting things.

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

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?

If neither nnmaildir or nnimap supports this behavior, is there a way to
do it with nnml or nnmbox?

Thanks for any help,
/au

-- 
Austin Frank http://aufrank.net
GPG Public Key (D7398C2F):  http://aufrank.net/personal.asc

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

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-29 11:24 Austin Frank [this message]
2007-08-29 11:58 ` David

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=m0hcmik33t.fsf@gmail.com \
    --to=austin.frank@gmail.com \
    --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).