unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Mark Walters <markwalters1009@gmail.com>
To: Ingo Hohmann <mail1@2b1.de>, notmuch@notmuchmail.org
Subject: Re: notmuch search --output=files    error with AND NOT search terms
Date: Tue, 09 Jul 2013 19:37:46 +0100	[thread overview]
Message-ID: <87mwpvd1fp.fsf@qmul.ac.uk> (raw)
In-Reply-To: <51DC0A16.5080704@2b1.de>


Hi

> Hi list,
>
> I am trying to check for mails, that are tagged differently from their 
> mailfolder.
>
> So I am searching like this, for example:
>
>      notmuch search   folder:1_Personal AND NOT tag:1_Personal
>      thread:0000000000005613   2008-01-15 [1/1] KIKIDAN News; kikidan 
> news 2008/01: Willkommen im neuen Jahr (inbox to-me)
>
> That's OK, but if I want to get the file name of the message, suddenly 
> get another message, which isn't located in the 1_Personal folder at all.
>
>      notmuch search --output=files   folder:1_Personal AND NOT 
> tag:1_Personal
> /home/ianus/Mail/ingo-2b1-de/INBOX/cur/1362131239_2.9026.cordraconis,U=33535,FMD5=7e33429f656f1e6e9d79b29c3f82c57e:2,S
> /home/ianus/Mail/ingo-2b1-de/1_Personal/cur/1361052415_0.30588.cordraconis,U=755,FMD5=2bd412d62930ab474a218128a61bdb68:2,S
>

The most likely cause is that these two messagefiles have the same
message-ids (so in notmuch's view are the same message). Try

notmuch search --output=messages  folder:1_Personal AND NOT tag:1_Personal

If you only see one message-id then notmuch thinks there is a single message
that matches the search. The way notmuch works is that it first finds
which messages match and then prints the requested information for those
messages. So in this case it finds the matching message(s) then prints
all filenames for those matching messages.

There are some patches floating around for improvements to the manpage
but they haven't been applied/reviewed yet.

Best wishes

Mark


>
> Kind regards,
>
> Ingo
>
>
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch

  reply	other threads:[~2013-07-09 18:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-09 13:03 notmuch search --output=files error with AND NOT search terms Ingo Hohmann
2013-07-09 18:37 ` Mark Walters [this message]
2013-07-10 11:55   ` ingo
2013-07-10 12:59     ` Suvayu Ali
2013-07-11  8:39       ` ingo
2013-07-11 11:53         ` Suvayu Ali

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=87mwpvd1fp.fsf@qmul.ac.uk \
    --to=markwalters1009@gmail.com \
    --cc=mail1@2b1.de \
    --cc=notmuch@notmuchmail.org \
    /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).