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 14C5E431FBD for ; Mon, 15 Jul 2013 05:53:48 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.299 X-Spam-Level: X-Spam-Status: No, score=-2.299 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3, UNPARSEABLE_RELAY=0.001] 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 R0eTOUFA9Lxw for ; Mon, 15 Jul 2013 05:53:40 -0700 (PDT) Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id A58C3431FBC for ; Mon, 15 Jul 2013 05:53:40 -0700 (PDT) Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r6FCrZVN027297 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 15 Jul 2013 12:53:38 GMT Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r6FCrYwx005552 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 15 Jul 2013 12:53:35 GMT Received: from abhmt104.oracle.com (abhmt104.oracle.com [141.146.116.56]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r6FCrYIu005549; Mon, 15 Jul 2013 12:53:34 GMT Received: from virt.cz.oracle.com (/10.163.102.127) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 15 Jul 2013 05:53:33 -0700 Date: Mon, 15 Jul 2013 14:53:28 +0200 From: Vladimir Marek To: Austin Clements Subject: Re: Re: Re: How to find mails which are sent to 'undisclosed-recipients' ? Message-ID: <20130715125328.GA16666@virt.cz.oracle.com> References: <20130711152427.GA16395@virt.cz.oracle.com> <20130711180302.GC16395@virt.cz.oracle.com> <20130711215207.GR2214@mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20130711215207.GR2214@mit.edu> User-Agent: Mutt/ (2012-12-30) X-Source-IP: acsinet21.oracle.com [141.146.126.237] Cc: Notmuch Mail 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, 15 Jul 2013 12:53:48 -0000 > > > > Since my mail works in a way that it hides everything but what I > > > > selected to be shown to me, I was overlooking all mails which where sent > > > > to undisclosed-recipients. I tried to match such mails by > > > > to:undisclosed-recipients but that does not seem to work. Is there any > > > > workaround to find such mails? > > > > > > I have some mail with this To header: > > > > > > To: Undisclosed recipients > > > > > > I can find them with the search to:"Undisclosed recipients". Note the quotes. > > > > The To: line in my case looks like: > > > > To: undisclosed-recipients:; > > RFC822 group syntax! Fascinating. You're right that notmuch doesn't > index group names, though I think it could with a small addition to > _index_address_group. It already descends into group addresses, it > just currently ignores the group name. > > > And I'm not able to find it in any way. Maybe notmuch won't parse it as an > > email and so won't store the To header to the database? > > I suspect it is indexing it. The only thing notmuch requires is that > the message be at least slightly well-formed and have either a From, > Subject, or To header. You can find the message's Message-ID header > and try a search like > > notmuch search id: > > > Any idea if there is a way to dump what notmuch knows about given email? > > There's no easy way. You can use Xapian's quest and delve tools to > find the document ID and get the term list of a message, but this is a > *very* low-level view of what notmuch knows. Thank you for looking at this. At the moment I plugged procmail to my setup to tag any such messages (sent to undisclosed recipients) with appropriate tag. Thank you -- Vlad