From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KKJFLLiWWmNEYAEAbAwnHQ (envelope-from ) for ; Thu, 27 Oct 2022 16:33:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YPofK7iWWmOARAEAG6o9tA (envelope-from ) for ; Thu, 27 Oct 2022 16:33:28 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 363F03ED38 for ; Thu, 27 Oct 2022 16:33:28 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 1063C5F9F6; Thu, 27 Oct 2022 14:33:23 +0000 (UTC) X-Greylist: delayed 536 seconds by postgrey-1.36 at yantan; Thu, 27 Oct 2022 14:24:16 UTC Received: from smtpout3.mo529.mail-out.ovh.net (smtpout3.mo529.mail-out.ovh.net [46.105.54.81]) by mail.notmuchmail.org (Postfix) with ESMTPS id CFB495F99D for ; Thu, 27 Oct 2022 14:24:16 +0000 (UTC) Received: from mxplan1.mail.ovh.net (unknown [10.109.156.13]) by mo529.mail-out.ovh.net (Postfix) with ESMTPS id 6A2D513712F14 for ; Thu, 27 Oct 2022 16:15:20 +0200 (CEST) Received: from javascript-ninja.fr (37.59.142.108) by DAG1EX1.mxp1.local (172.16.2.1) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Thu, 27 Oct 2022 16:15:19 +0200 X-OVh-ClientIp: 194.206.176.217 Date: Thu, 27 Oct 2022 16:15:16 +0200 From: Edgar Hipp To: Subject: Adding support for notmuch-address --output=sender --output=date Message-ID: <20221027141516.dc2ifkgwvvtjlad3@xenophon> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline X-Originating-IP: [37.59.142.108] X-ClientProxiedBy: DAG10EX1.mxp1.local (172.16.2.19) To DAG1EX1.mxp1.local (172.16.2.1) X-Ovh-Tracer-GUID: b491b5d2-ccef-4921-9929-215157b48180 X-Ovh-Tracer-Id: 10554185728993805847 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvgedrtdeggdejfecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhepfffhvffukfggtgguihesthdtredttddtvdenucfhrhhomhepgfgughgrrhcujfhiphhpuceotghonhhtrggtthesjhgrvhgrshgtrhhiphhtqdhnihhnjhgrrdhfrheqnecuggftrfgrthhtvghrnhepgeduuedvheethfekteduheejuddugedvffdtheetveeufedtgeeuiefgieeludfgnecukfhppeduvdejrddtrddtrddupdefjedrheelrddugedvrddutdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpeeotghonhhtrggtthesjhgrvhgrshgtrhhiphhtqdhnihhnjhgrrdhfrheqpdhnsggprhgtphhtthhopedupdhrtghpthhtohepnhhothhmuhgthhesnhhothhmuhgthhhmrghilhdrohhrghdpoffvtefjohhsthepmhhohedvledpmhhouggvpehsmhhtphhouhht X-MailFrom: contact@javascript-ninja.fr X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0 Message-ID-Hash: DA6SY7OKJYMZNGZCARZY3G2TCVJ7DRNK X-Message-ID-Hash: DA6SY7OKJYMZNGZCARZY3G2TCVJ7DRNK X-Mailman-Approved-At: Thu, 27 Oct 2022 14:33:21 +0000 X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666881208; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=Lj9WE7xMvDeuNPRI3OcGKEyAHYYBRuS/DqJrvNKO4xw=; b=gBg8xSoNeqTwyoqz4MCvwJlkn120axqfS5vGWKoF+744HPgGo+Z+MLaKhOf85H74hYByUB 57hfa5E32yVu0vKPLk3OjgWfFhITVsgj96U22dH+xE5CyRmRFnqE2cbnS4Wy1AfrhJIg3y qHXbVwh8cKoYkGPNT9MZMNfueEh6tCdzUHCAqWFBF7pUqpqEdqlvN9Jowy7wWqzORL29Cc E1Kp8Xbolvr2rbnhsl2Bc9YJOh7PoIUyZmk2aoo6rejxIAnmUL4ceFnNzwH0yQ9JzpcZlh pEZGJdJORcJBk4z+W83T92nvPY3FMnb50R61IOqqYyMO040akU1Fo/kJ6RJilg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666881208; a=rsa-sha256; cv=none; b=dtMvl8Bg5KyIa8LHOzUBUYZT9yKwzfu6OEu4/mY+kB0NyzEuu9nwMvfu8o+7pIzHJgstPy kp8hj4pzMZQ1c+egiG0lWSgwcqqd3pPEsLVpyFQMQlwdq67U9dQ2LdY9UiQDqUxkfBwGdm bpSQF3ekmVAu9iAMo/DByDLQf5MCTqW2TlmQpBxaS2OKx0iGEzA4t+X5mZ+JX3WifqcbL1 18B79WX7gx2Kfa8j1keLsbeepCeZsjgOfWI+0dPLk9p09nxdnroJMbpcu342IMnR8RBqlF jGIy/jpi0Bd7OwHiYPjDjurZ9XXafXSuyb+jHqRglvIBcAueOG18/aKXr3kaKw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.65 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 363F03ED38 X-Spam-Score: -1.65 X-Migadu-Scanner: scn1.migadu.com X-TUID: 9YrlsvIAG5xE Hello ! I really love the simplicity of notmuch. I'm currently creating a script that uses the output of : notmuch address --output=sender --output=count I'd very much like to have a way to also know, for each address, when was the last time I got or sent an email to that person. Something like this : notmuch address --output=sender --output=count --output=date Which would return : 10 2022-10-27T16:12:00+02:00 contact@javascript-ninja.fr I could do this manually in a script to search for each address, when was the last email sent or received but this will obviously require one call to notmuch for each address and take a lot of time. Maybe one would need to use two flags : --output=date-first --output=date-last Where date-first would be the first date of contact (for example 2020-03-11T14:15:00+02:00) And date-last the last date of contact (for example 2022-10-27T16:12:00+02:00) Best, Edgar