unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Getting read out of inbox
@ 2023-11-27 23:56 Caleb Herbert
  2023-11-28 21:54 ` Carl Worth
  0 siblings, 1 reply; 2+ messages in thread
From: Caleb Herbert @ 2023-11-27 23:56 UTC (permalink / raw)
  To: notmuch

Hi,

I have a stupid newbie question.

How do I get Notmuch to reflect the way I have my mail sorted?

I just started using Notmuch, opened my email in Emacs, and was
bombarded by a bunch of old mail.  My email was perfectly sorted in
Icedove (Thunderbird) before I made the switch.  Everything was in the
Archive/20xx folders.

Thanks,

-- 
Caleb Herbert

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

* Re: Getting read out of inbox
  2023-11-27 23:56 Getting read out of inbox Caleb Herbert
@ 2023-11-28 21:54 ` Carl Worth
  0 siblings, 0 replies; 2+ messages in thread
From: Carl Worth @ 2023-11-28 21:54 UTC (permalink / raw)
  To: Caleb Herbert, notmuch

On Mon, Nov 27 2023, Caleb Herbert wrote:
> Hi,

Hi Caleb,

> I have a stupid newbie question.

No problem at all.

> I just started using Notmuch, opened my email in Emacs, and was
> bombarded by a bunch of old mail.  My email was perfectly sorted in
> Icedove (Thunderbird) before I made the switch.  Everything was in the
> Archive/20xx folders.

When notmuch encounters mail for the first time it adds (by default
anyway) an "inbox" tag to each item.

In your case, where most of what you've just imported is not new, all
you need to do is remove that inbox tag from the mail that you've
already read.

Fortunately, notmuch makes that pretty easy since you can search for and
tag (or untag) messages matching search criteria of interest.

I'd suggest starting at the command line and doing some notmuch based
searches to see how things work and then switch from searching to
instead do the tag removal when you're happy with what things look like.

For example , you might start by just counting all messages:

    notmuch count '*'

and then count messages matching some search criteria, such as, perhaps:

    notmuch count folder:Archive/2022

If the counts look like what you are expecting, then you can untag
messages with "notmuch tag -inbox" and again, providing the same search
criteria such as:

    notmuch tag -inbox folder:Archive/2022

Of course, your search criteria doesn't have to be based on maildir
directories like the above. You could also search for all messages prior
to some specific date with something like:

    notmuch count date:..2023-06-01

and, of course, again:

    notmuch tag -inbox date:..2023-06-01

See "man notmuch-search-terms" for many more examples of ways you can
search for messages.

I hope that gives you a good place to start. And I hope that notmuch
gives you a better experience once you're past this first hurdle.

-Carl

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

end of thread, other threads:[~2023-11-28 21:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-27 23:56 Getting read out of inbox Caleb Herbert
2023-11-28 21:54 ` 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).