unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* i do not have INBOX
@ 2017-01-20 11:11 David Belohrad
  2017-01-20 12:45 ` David Bremner
  0 siblings, 1 reply; 4+ messages in thread
From: David Belohrad @ 2017-01-20 11:11 UTC (permalink / raw)
  To: notmuch

Dear all,

notmuch search folder:<xxxxx>


my directory does not contain INBOX, as inside the Maildir folder is directly /cur, /new, /tmp. How do I search in this particular one? The question is related to usage of 'afew' to move all mails which have 'deleted' tag into Trash folder (which I have under .Trash)

many thanks
.d.

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

* Re: i do not have INBOX
  2017-01-20 11:11 i do not have INBOX David Belohrad
@ 2017-01-20 12:45 ` David Bremner
  2017-01-20 15:48   ` Brian Sniffen
  0 siblings, 1 reply; 4+ messages in thread
From: David Bremner @ 2017-01-20 12:45 UTC (permalink / raw)
  To: David Belohrad, notmuch

David Belohrad <david@belohrad.ch> writes:

>
> my directory does not contain INBOX, as inside the Maildir folder is
> directly /cur, /new, /tmp. How do I search in this particular one?

Quoting notmuch-search-terms(7)

       The  exact  syntax for maildir folders depends on your mail configura‐
       tion. For maildir++, folder:"" matches the inbox folder (which is  the
       root  in  maildir++),  other  folder  names always start with ".", and
       nested folders are separated by "."s, such  as  folder:.classes.topol‐
       ogy.  For  "file  system" maildir, the inbox is typically folder:INBOX
       and   nested   folders   are   separated   by   slashes,    such    as
       folder:classes/topology.

> The question is related to usage of 'afew' to move all mails which
> have 'deleted' tag into Trash folder (which I have under .Trash)

Hopefully the above is enough to help you formulate the right query.
You probably also want the options --format=text0 and --output=files for
notmuch search.

d

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

* Re: i do not have INBOX
  2017-01-20 12:45 ` David Bremner
@ 2017-01-20 15:48   ` Brian Sniffen
  2017-01-20 16:20     ` David Belohrad
  0 siblings, 1 reply; 4+ messages in thread
From: Brian Sniffen @ 2017-01-20 15:48 UTC (permalink / raw)
  To: David Bremner, David Belohrad, notmuch

David Bremner <david@tethera.net> writes:

> David Belohrad <david@belohrad.ch> writes:
>
>>
>> my directory does not contain INBOX, as inside the Maildir folder is
>> directly /cur, /new, /tmp. How do I search in this particular one?
>
> Quoting notmuch-search-terms(7)
>
>        The  exact  syntax for maildir folders depends on your mail configura‐
>        tion. For maildir++, folder:"" matches the inbox folder (which is  the
>        root  in  maildir++),  other  folder  names always start with ".", and
>        nested folders are separated by "."s, such  as  folder:.classes.topol‐
>        ogy.  For  "file  system" maildir, the inbox is typically folder:INBOX
>        and   nested   folders   are   separated   by   slashes,    such    as
>        folder:classes/topology.
>
>> The question is related to usage of 'afew' to move all mails which
>> have 'deleted' tag into Trash folder (which I have under .Trash)
>
> Hopefully the above is enough to help you formulate the right query.
> You probably also want the options --format=text0 and --output=files for
> notmuch search.

The next paragraph of that man page has an important warning for anyone
planning on re-arranging files based on the results of notmuch:

       Both path: and folder: will find a message if any copy of that
       message  is  in  the specific directory/folder.

It's important to filter the names (e.g., `notmuch ...|grep -Fzv
/.|xargs -Ifoo mv foo $MAILDIR/.Trash/cur/`) before relying on them.

-Brian

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

* Re: i do not have INBOX
  2017-01-20 15:48   ` Brian Sniffen
@ 2017-01-20 16:20     ` David Belohrad
  0 siblings, 0 replies; 4+ messages in thread
From: David Belohrad @ 2017-01-20 16:20 UTC (permalink / raw)
  To: Brian Sniffen, David Bremner, notmuch

Dear all,
thanks for hint, i'm however not sure how to apply this on afew, which i'd like to use to move the mails around. The 'default' afew example config is similar to this:

[MailMover]
folders = INBOX .Trash
INBOX = 'tag:deleted':.Trash
.Trash = 'NOT tag:deleted':INBOX

if i'm however not able to specify folder as empty, this would not work, right? (i know, this is rather question for Justus, author of afew, hence putting in copy)

.d.







Brian Sniffen <bts@evenmere.org> writes:

> David Bremner <david@tethera.net> writes:
>
>> David Belohrad <david@belohrad.ch> writes:
>>
>>>
>>> my directory does not contain INBOX, as inside the Maildir folder is
>>> directly /cur, /new, /tmp. How do I search in this particular one?
>>
>> Quoting notmuch-search-terms(7)
>>
>>        The  exact  syntax for maildir folders depends on your mail configura‐
>>        tion. For maildir++, folder:"" matches the inbox folder (which is  the
>>        root  in  maildir++),  other  folder  names always start with ".", and
>>        nested folders are separated by "."s, such  as  folder:.classes.topol‐
>>        ogy.  For  "file  system" maildir, the inbox is typically folder:INBOX
>>        and   nested   folders   are   separated   by   slashes,    such    as
>>        folder:classes/topology.
>>
>>> The question is related to usage of 'afew' to move all mails which
>>> have 'deleted' tag into Trash folder (which I have under .Trash)
>>
>> Hopefully the above is enough to help you formulate the right query.
>> You probably also want the options --format=text0 and --output=files for
>> notmuch search.
>
> The next paragraph of that man page has an important warning for anyone
> planning on re-arranging files based on the results of notmuch:
>
>        Both path: and folder: will find a message if any copy of that
>        message  is  in  the specific directory/folder.
>
> It's important to filter the names (e.g., `notmuch ...|grep -Fzv
> /.|xargs -Ifoo mv foo $MAILDIR/.Trash/cur/`) before relying on them.
>
> -Brian

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

end of thread, other threads:[~2017-01-20 16:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-20 11:11 i do not have INBOX David Belohrad
2017-01-20 12:45 ` David Bremner
2017-01-20 15:48   ` Brian Sniffen
2017-01-20 16:20     ` David Belohrad

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