unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* excluding files from a folder for searches
@ 2014-07-16 14:15 Alan Schmitt
  2014-07-16 19:10 ` David Bremner
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Schmitt @ 2014-07-16 14:15 UTC (permalink / raw)
  To: notmuch

[-- Attachment #1: Type: text/plain, Size: 300 bytes --]

Hello,

I'm trying to configure notmuch such that it never searches for files in
my Trash folder. I have found in the configuration how to exclude some
tags from every search, but not how to exclude a folder.

Is it possible?

Thanks a lot,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7

[-- Attachment #2: Type: application/pgp-signature, Size: 494 bytes --]

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

* Re: excluding files from a folder for searches
  2014-07-16 14:15 excluding files from a folder for searches Alan Schmitt
@ 2014-07-16 19:10 ` David Bremner
  2014-07-17  6:09   ` Alan Schmitt
  0 siblings, 1 reply; 5+ messages in thread
From: David Bremner @ 2014-07-16 19:10 UTC (permalink / raw)
  To: Alan Schmitt, notmuch

Alan Schmitt <alan.schmitt@polytechnique.org> writes:

> Hello,
>
> I'm trying to configure notmuch such that it never searches for files in
> my Trash folder. I have found in the configuration how to exclude some
> tags from every search, but not how to exclude a folder.
>
> Is it possible?
>

One thing you can do is mark the trash folder to be ignored by 
notmuch new. See the new.ignore setting in man notmuch-config(1).

d

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

* Re: excluding files from a folder for searches
  2014-07-16 19:10 ` David Bremner
@ 2014-07-17  6:09   ` Alan Schmitt
  2014-07-17  9:38     ` David Bremner
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Schmitt @ 2014-07-17  6:09 UTC (permalink / raw)
  To: David Bremner; +Cc: notmuch

[-- Attachment #1: Type: text/plain, Size: 791 bytes --]

On 2014-07-16 21:10, David Bremner <david@tethera.net> writes:

>> I'm trying to configure notmuch such that it never searches for files in
>> my Trash folder. I have found in the configuration how to exclude some
>> tags from every search, but not how to exclude a folder.
>>
>> Is it possible?
>
> One thing you can do is mark the trash folder to be ignored by 
> notmuch new. See the new.ignore setting in man notmuch-config(1).

Thank you for the suggestion, I've added ".Trash" to this list. As the
current messages will be deleted in about a week, it should be fine.

By the way, how will notmuch realize that the messages are no longer
there? Does it still scan the directory when it's in new.ignore?

Thanks again,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7

[-- Attachment #2: Type: application/pgp-signature, Size: 494 bytes --]

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

* Re: excluding files from a folder for searches
  2014-07-17  6:09   ` Alan Schmitt
@ 2014-07-17  9:38     ` David Bremner
  2014-07-17  9:53       ` Alan Schmitt
  0 siblings, 1 reply; 5+ messages in thread
From: David Bremner @ 2014-07-17  9:38 UTC (permalink / raw)
  To: Alan Schmitt; +Cc: notmuch

Alan Schmitt <alan.schmitt@polytechnique.org> writes:

>
> By the way, how will notmuch realize that the messages are no longer
> there? Does it still scan the directory when it's in new.ignore?
>

No, I think you'll have to do something manual like remove the directory
from the ignore list, move the directory out of the way, an re-run
notmuch new.

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

* Re: excluding files from a folder for searches
  2014-07-17  9:38     ` David Bremner
@ 2014-07-17  9:53       ` Alan Schmitt
  0 siblings, 0 replies; 5+ messages in thread
From: Alan Schmitt @ 2014-07-17  9:53 UTC (permalink / raw)
  To: David Bremner; +Cc: notmuch

[-- Attachment #1: Type: text/plain, Size: 519 bytes --]

On 2014-07-17 11:38, David Bremner <david@tethera.net> writes:

> Alan Schmitt <alan.schmitt@polytechnique.org> writes:
>
>> By the way, how will notmuch realize that the messages are no longer
>> there? Does it still scan the directory when it's in new.ignore?
>
> No, I think you'll have to do something manual like remove the directory
> from the ignore list, move the directory out of the way, an re-run
> notmuch new.

That worked great, thanks a lot!

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7

[-- Attachment #2: Type: application/pgp-signature, Size: 494 bytes --]

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

end of thread, other threads:[~2014-07-17  9:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-16 14:15 excluding files from a folder for searches Alan Schmitt
2014-07-16 19:10 ` David Bremner
2014-07-17  6:09   ` Alan Schmitt
2014-07-17  9:38     ` David Bremner
2014-07-17  9:53       ` Alan Schmitt

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