unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Folder-based searching
@ 2011-01-15 22:46 Carl Worth
  2011-01-17  6:17 ` Xavier Maillard
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Carl Worth @ 2011-01-15 22:46 UTC (permalink / raw)
  To: notmuch

I'm as sad as anyone to see that I let more than a month go by without
committing to the notmuch repository.

But I've just now committed the much-desired folder-based search
feature.

This should be a handy feature for people bringing mail in from a system
that stores information in the directories in which mail is stored, (one
common case is users fetching mail from gmail via imap---in this case
all gmail tags will be represented as directories).

Someone bringing in mail from such a system might want to migrate from
information in directory names to instead be information in notmuch
tags. That might look something like this:

	notmuch tag +important folder:important

Or it might be useful to run on several directories:

	for dir in *; do notmuch tag +"$dir"; folder:"$dir"; done

etc.

Please note that with the code in git currently, only newly incorporated
mail will be searchable via the "folder:" specification. So if you're
wanting to search your entire email collection, you may want to rebuild
your entire notmuch database. As a reminder, that process is something
like the following:

    notmuch dump > notmuch.dump
    rm -rf ~/mail/.notmuch	# Careful with this! Have backups in place!
    notmuch new			# Of course, this can take a long time
    notmuch restore notmuch.dump

Before the next release, I plan to increment the database version so
that users will be notified of the need to do an upgrade like this. (But
before I do that, I plan to implement a few more database changes---and
some of them are likely to be much more invasive than this one).

Have fun out there!

-Carl

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: Folder-based searching
@ 2011-01-21 10:45 mazieres-6kd3dvy8f9kx6dc7vcsytfvnai
  2011-01-21 16:59 ` Carl Worth
  0 siblings, 1 reply; 15+ messages in thread
From: mazieres-6kd3dvy8f9kx6dc7vcsytfvnai @ 2011-01-21 10:45 UTC (permalink / raw)
  To: notmuch

This folder-based searching is very handy.  However, I have a scenario
in which I'd prefer to consolidate mail to multiple addresses into one
or a small number of physical mail folders.  Thus, what I really want
to search on is not the mail folder name, but the Delivered-To:
header.

Can someone tell me if there is any easy way to restrict a search to
the Delivered-To: header, or to add custom header support to notmuch?

Sorry if this is a very basic question.  I've just started checking
out notmuch and really like what I see so far.  My inability to figure
out how to search unambiguously for Delivered-To headers looks like it
could be the biggest obstacle to switching from Wanderlust (which lets
me customize search for arbitrary headers listed in
elmo-msgdb-extra-fields).

Thanks.

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2011-05-13  8:07 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-15 22:46 Folder-based searching Carl Worth
2011-01-17  6:17 ` Xavier Maillard
2011-01-17 12:43 ` Sebastian Spaeth
2011-01-17 13:00   ` Sebastian Spaeth
2011-03-12 23:44     ` [PATCH] test: "search-by-folder" single-word search terms should be updated correctly when directories are renamed Pieter Praet
2011-05-12 13:22       ` Pieter Praet
2011-05-12 16:04         ` Jameson Graef Rollins
2011-05-13  8:06           ` [PATCH] test: do folder-based search with a single-term path after moving message Pieter Praet
2011-01-17 18:48 ` Folder-based searching Rob Browning
2011-01-18 19:09   ` Carl Worth
2011-01-18 19:54     ` Rob Browning
2011-01-18 20:16       ` Carl Worth
2011-01-19  7:29       ` Austin Clements
  -- strict thread matches above, loose matches on Subject: below --
2011-01-21 10:45 mazieres-6kd3dvy8f9kx6dc7vcsytfvnai
2011-01-21 16:59 ` Carl Worth

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).