From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6GUpLsol82H95gAAgWs5BA (envelope-from ) for ; Fri, 28 Jan 2022 00:07:54 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id qKTYKsol82FEaQEAauVa8A (envelope-from ) for ; Fri, 28 Jan 2022 00:07:54 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (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 8504D1576E for ; Fri, 28 Jan 2022 00:07:54 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id D3B505F730; Thu, 27 Jan 2022 23:07:48 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 7E7A05F722 for ; Thu, 27 Jan 2022 23:07:45 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id BD3D65FBD2; Thu, 27 Jan 2022 18:07:44 -0500 (EST) Received: (nullmailer pid 1576893 invoked by uid 1000); Thu, 27 Jan 2022 23:07:43 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: WIP: add --output=lastmod to notmuch tag Date: Thu, 27 Jan 2022 19:07:38 -0400 Message-Id: <20220127230740.1576802-1-david@tethera.net> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Message-ID-Hash: DUJVQSBFHPADCOJDZWZJCMDC3LWDSOVA X-Message-ID-Hash: DUJVQSBFHPADCOJDZWZJCMDC3LWDSOVA X-MailFrom: bremner@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header 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-Type: text/plain; charset="us-ascii" 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=1643324874; 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=jctGBtSXbjiIxPWBbVcUIMDRHBz5/dns82nk6cXqZUo=; b=PZGqYqRPJ4LkWarFHSsg8lYvA+Oj4EGRno6VYDK54e7ssgYPsxi4G3zdFh07W9qwOSa/7t VoHO9JuVjgduYlBaK+2J9rRrEL9PhQUwLCK186FREXCenLTW9fY2ehpFxUVuPiObLNSzgx 0kla5WMTUI69qR5pJHSSdme2I9sLe5X3vzdk8nI+ZuwbTiD4F0ZTMAeZffgmCSWk7tFmus fgfiz1FvCJkc+1bi2j7StszYfTVqL7qSJzTtO3Jvx+pkItgpL16cfMxCb0tAD7SafOf4it lbE2lZEWCF9NVXLypGaW+FmOslxEb5Mc31NKehWjB6zJfLRIpJta/IJMXxJY9Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643324874; a=rsa-sha256; cv=none; b=QMFslAuOG8NArbEaBHwX8/YfdOljjq7/X2TYVeRmphl60xLiKb+IyqpHOHNnifc4iQl4Zw GdbiEJHvvp494LF9DEBTWTcEIqm/VnylFgIt0ZTS5E3EkUkSyrAYO4X4nY2YHVhkRD3/bP uZedjG2gDMvf736yIchO/Kse/9BJjJrcW/sO3jLVcLfItbTbyPfbN2+Zgkn7HBtfle9w4G n5CvOEWTIfZS3BWHLZQ2QjU5L6Pupm9b0UlC2YYv0X/MapCcjzV+HKuqfvhMTgHYoLkJnu b1oQdR6tGV2VnMfAGIu/sk2Mbmp1pD6V38k0i1T/6xt3+xOwmUSoU/fV8x4R/g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.86 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 8504D1576E X-Spam-Score: -1.86 X-Migadu-Scanner: scn0.migadu.com X-TUID: xBCwolkgWn8k This gives a compact and atomic (thanks to holding a write lock) way of saving a tag change. It should probably also output the database uuid, so we can catch mistakes like trying to undo a change with a compaction in between.