unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Michal Sojka <sojkam1@fel.cvut.cz>
To: Stephen Paul Weber <singpolyma@singpolyma.net>, notmuch@notmuchmail.org
Subject: Re: A problem and a suggestion
Date: Sun, 08 Aug 2010 15:52:49 +0200	[thread overview]
Message-ID: <87d3ttfbym.fsf@steelpick.2x.cz> (raw)
In-Reply-To: <20100806170410.GA1526@singpolyma-svelti>

On Fri, 06 Aug 2010, Stephen Paul Weber wrote:
> Anyway.  I installed notmuch a few days ago (0.1), ran the setup, ran
> notmuch new and i said it found 30000+ files, but no new mail?  No searches
> return any results.  What am I doing wrong?

Hi Stephen,

I guess you have your mails in a wrong fomrat. Do you see "Note:
Ignoring non-mail file" messages during notmuch new? You may also try
notmuch new --verbose.

> How does notmuch determine which mail is "new" anyway? 

New is a message found on your disk with a message-id not stored in
notmuch database.

> I gather by other threads on the list archives that editing a message
> does not make it "new"? So notmuch just gets whatever the first
> version of the message contents it sees is? And if the file gets
> renamed (by mutt for example, when marked as read) the filename stored
> by notmuch would then be wrong?

Yes. AFAIK notmuch assumes that messages are immutable and when you edit
the message, notmuch doesn't re-index it. Notmuch new code is able to
detect renames so if you rename the file, the filename in the database
is wrong only until you run notmuch new again.

> I'd also like to suggest that notmuch index the Keywords header, since that
> is a header meant exactly for being indexed by search engines and for
> searching on.  I use it quite a bit.

This is an often requested feature - everyone has its favorite header
which he wants to index. Indexing custom headers is planned for some
future release, but no code has appeared yet.

> This would be especially useful if notmuch re-indexed a message when I
> edit this header.

I'm not sure how hard it would be to implement this and what would be
the performance implications. You should store modification time of a
message in the database and re-index the file when the mtime on disk in
newer than in the database.
> 
> Actually, how hard would it be to allow notmuch to be configured to index
> any custom header?

Not much :-)

-Michal

  reply	other threads:[~2010-08-08 13:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-06 17:04 A problem and a suggestion Stephen Paul Weber
2010-08-08 13:52 ` Michal Sojka [this message]
2010-08-11 18:31   ` Stephen Paul Weber

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

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d3ttfbym.fsf@steelpick.2x.cz \
    --to=sojkam1@fel.cvut.cz \
    --cc=notmuch@notmuchmail.org \
    --cc=singpolyma@singpolyma.net \
    /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.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

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 read-only IMAP folder(s) and NNTP newsgroup(s).