Re: Notmuch search missing mail id
authorTomi Ollila <tomi.ollila@iki.fi>
Mon, 29 Oct 2012 17:50:31 +0000 (19:50 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:50:10 +0000 (09:50 -0800)
39/6c09e46ea8ba9ccaebaac7865799c3efd2a231 [new file with mode: 0644]

diff --git a/39/6c09e46ea8ba9ccaebaac7865799c3efd2a231 b/39/6c09e46ea8ba9ccaebaac7865799c3efd2a231
new file mode 100644 (file)
index 0000000..4804685
--- /dev/null
@@ -0,0 +1,99 @@
+Return-Path: <tomi.ollila@iki.fi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 03325431FC7\r
+       for <notmuch@notmuchmail.org>; Mon, 29 Oct 2012 10:50:30 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.01\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.01 tagged_above=-999 required=5\r
+       tests=[T_LOTS_OF_MONEY=0.01] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id 0N5J-tWFXrwq for <notmuch@notmuchmail.org>;\r
+       Mon, 29 Oct 2012 10:50:30 -0700 (PDT)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+       by olra.theworths.org (Postfix) with ESMTP id 2F7DC431FAF\r
+       for <notmuch@notmuchmail.org>; Mon, 29 Oct 2012 10:50:30 -0700 (PDT)\r
+Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
+       by guru.guru-group.fi (Postfix) with ESMTP id 05E2D10007D;\r
+       Mon, 29 Oct 2012 19:50:31 +0200 (EET)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: James Vasile <james@hackervisions.org>,\r
+       notmuch mailing list <notmuch@notmuchmail.org>\r
+Subject: Re: Notmuch search missing mail id\r
+In-Reply-To: <87r4oh44h8.fsf@hackervisions.org>\r
+References: <87r4oh44h8.fsf@hackervisions.org>\r
+User-Agent: Notmuch/0.14+59~gf9031cd (http://notmuchmail.org) Emacs/24.2.1\r
+       (x86_64-unknown-linux-gnu)\r
+X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
+       $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
+       !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
+Date: Mon, 29 Oct 2012 19:50:31 +0200\r
+Message-ID: <m2390x6uc8.fsf@guru.guru-group.fi>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 29 Oct 2012 17:50:31 -0000\r
+\r
+On Mon, Oct 29 2012, James Vasile <james@hackervisions.org> wrote:\r
+\r
+> I received the attached piece of spam telling me about an exciting\r
+> investment opportunity.  Notmuch pulled it in to the database, noting\r
+> the message id.  But then it seems to stop paying attention to the\r
+> message id.\r
+>\r
+> notmuch can find the mail when I search by the from field:\r
+>\r
+> $ notmuch search "from:caroline horn"\r
+> thread:000000000000bcb7  Today 09:29 [1/1] Caroline Horn; This Company is on the rise (hv inbox unread)\r
+>\r
+> But not by the message id:\r
+> $ notmuch search id:000801cdb5da$17673470$26448589@microsof000000t4ko3r\r
+> $\r
+\r
+Try \r
+\r
+$ notmuch search id:'000801cdb5da$17673470$26448589@microsof000000t4ko3r'\r
+\r
+so that the $....s are not expanded...\r
+\r
+note that id:"..." does not suffice as shell expands $ & ` inside double\r
+quotes.\r
+\r
+Tomi\r
+\r
+\r
+>\r
+> Notmuch has correctly pulled the id into the database:\r
+> $ notmuch show "from:caroline horn" | grep "id:" | sed "s/.*\(id:[^ ]*\).*/\1/"\r
+> id:000801cdb5da$17673470$26448589@microsof000000t4ko3r\r
+>\r
+> If notmuch knows the id but won't match it in a search, that looks like\r
+> a bug to me.\r
+>\r
+> On a related matter, I have a script that pulls the message id header\r
+> From a mail file and then uses notmuch tag id:foo to tag that file.  But\r
+> if notmuch sometimes fails to find the id, maybe there is there a better\r
+> way to do it?\r
+>\r
+> Thanks,\r
+> James\r
+>\r
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> http://notmuchmail.org/mailman/listinfo/notmuch\r