unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Tomi Ollila <tomi.ollila@iki.fi>
To: James Vasile <james@hackervisions.org>,
	notmuch mailing list <notmuch@notmuchmail.org>
Subject: Re: Notmuch search missing mail id
Date: Mon, 29 Oct 2012 19:50:31 +0200	[thread overview]
Message-ID: <m2390x6uc8.fsf@guru.guru-group.fi> (raw)
In-Reply-To: <87r4oh44h8.fsf@hackervisions.org>

On Mon, Oct 29 2012, James Vasile <james@hackervisions.org> wrote:

> I received the attached piece of spam telling me about an exciting
> investment opportunity.  Notmuch pulled it in to the database, noting
> the message id.  But then it seems to stop paying attention to the
> message id.
>
> notmuch can find the mail when I search by the from field:
>
> $ notmuch search "from:caroline horn"
> thread:000000000000bcb7  Today 09:29 [1/1] Caroline Horn; This Company is on the rise (hv inbox unread)
>
> But not by the message id:
> $ notmuch search id:000801cdb5da$17673470$26448589@microsof000000t4ko3r
> $

Try 

$ notmuch search id:'000801cdb5da$17673470$26448589@microsof000000t4ko3r'

so that the $....s are not expanded...

note that id:"..." does not suffice as shell expands $ & ` inside double
quotes.

Tomi


>
> Notmuch has correctly pulled the id into the database:
> $ notmuch show "from:caroline horn" | grep "id:" | sed "s/.*\(id:[^ ]*\).*/\1/"
> id:000801cdb5da$17673470$26448589@microsof000000t4ko3r
>
> If notmuch knows the id but won't match it in a search, that looks like
> a bug to me.
>
> On a related matter, I have a script that pulls the message id header
> From a mail file and then uses notmuch tag id:foo to tag that file.  But
> if notmuch sometimes fails to find the id, maybe there is there a better
> way to do it?
>
> Thanks,
> James
>
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch

  reply	other threads:[~2012-10-29 17:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-29 16:39 Notmuch search missing mail id James Vasile
2012-10-29 17:50 ` Tomi Ollila [this message]
2012-10-29 18:03   ` James Vasile

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=m2390x6uc8.fsf@guru.guru-group.fi \
    --to=tomi.ollila@iki.fi \
    --cc=james@hackervisions.org \
    --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).