From 0e6cc3833c3de9999a676d8739f4f52fa1268291 Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Mon, 29 Oct 2012 19:50:31 +0200 Subject: [PATCH] Re: Notmuch search missing mail id --- 39/6c09e46ea8ba9ccaebaac7865799c3efd2a231 | 99 +++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 39/6c09e46ea8ba9ccaebaac7865799c3efd2a231 diff --git a/39/6c09e46ea8ba9ccaebaac7865799c3efd2a231 b/39/6c09e46ea8ba9ccaebaac7865799c3efd2a231 new file mode 100644 index 000000000..480468546 --- /dev/null +++ b/39/6c09e46ea8ba9ccaebaac7865799c3efd2a231 @@ -0,0 +1,99 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 03325431FC7 + for ; Mon, 29 Oct 2012 10:50:30 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0.01 +X-Spam-Level: +X-Spam-Status: No, score=0.01 tagged_above=-999 required=5 + tests=[T_LOTS_OF_MONEY=0.01] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id 0N5J-tWFXrwq for ; + Mon, 29 Oct 2012 10:50:30 -0700 (PDT) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by olra.theworths.org (Postfix) with ESMTP id 2F7DC431FAF + for ; Mon, 29 Oct 2012 10:50:30 -0700 (PDT) +Received: from guru.guru-group.fi (localhost [IPv6:::1]) + by guru.guru-group.fi (Postfix) with ESMTP id 05E2D10007D; + Mon, 29 Oct 2012 19:50:31 +0200 (EET) +From: Tomi Ollila +To: James Vasile , + notmuch mailing list +Subject: Re: Notmuch search missing mail id +In-Reply-To: <87r4oh44h8.fsf@hackervisions.org> +References: <87r4oh44h8.fsf@hackervisions.org> +User-Agent: Notmuch/0.14+59~gf9031cd (http://notmuchmail.org) Emacs/24.2.1 + (x86_64-unknown-linux-gnu) +X-Face: HhBM'cA~ +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Mon, 29 Oct 2012 17:50:31 -0000 + +On Mon, Oct 29 2012, James Vasile 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 -- 2.26.2