From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id B50986DE0B0A for ; Thu, 20 Sep 2018 23:48:53 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.098 X-Spam-Level: X-Spam-Status: No, score=-0.098 tagged_above=-999 required=5 tests=[AWL=0.113, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.211] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HV88TaycrG5v for ; Thu, 20 Sep 2018 23:48:52 -0700 (PDT) Received: from mail-ed1-f67.google.com (mail-ed1-f67.google.com [209.85.208.67]) by arlo.cworth.org (Postfix) with ESMTPS id 3E20E6DE0AF5 for ; Thu, 20 Sep 2018 23:48:52 -0700 (PDT) Received: by mail-ed1-f67.google.com with SMTP id h33-v6so9833080edb.5 for ; Thu, 20 Sep 2018 23:48:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gaute-vetsj-com.20150623.gappssmtp.com; s=20150623; h=date:from:subject:to:references:in-reply-to:mime-version:user-agent :message-id; bh=PV6dW2Ji2ZfmNlvhle1rvIPIbN+x6fNYt0OBvCTwXj4=; b=RKy6s/jNWp1jfz+dp1Dw4pat/n5xJ7t/gD4VhdUZySGHs7w4CbLb9g2lUvrQl5FGx4 d6xLjx1B+6MaH02ePvibP6oTB+uP1s53GmTtjj6/ZOP3NO+WN9Ao865rVfRliSdYtk/c q2vPEmyNetlFtEH6QHDa3S2kFBUnhduOreCRks3Q+9g6vnFRAN/jumS4plhTb8/lEat4 GGe+5MEfXBP6KsGEsLmnnydS5OOigfLZAIUAPh/ju12/eS0Q6rJYOmJ9a8YGDmCJea7G x2mCNdTvTJJTPxOnLm1ii2gj+0OXEGECFbQEQHjXmcmeGMiytoZbHj/NWimKnAKim/3C nleQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:subject:to:references:in-reply-to :mime-version:user-agent:message-id; bh=PV6dW2Ji2ZfmNlvhle1rvIPIbN+x6fNYt0OBvCTwXj4=; b=RJiXfrOASEePDeAi6FZN2Rdk8e/wqj08+1urMDZ3OoqW6B08B3Oz95hmXX7xHMjRWC geWV+IG4azTFCGZ1LxFVo5i5PXMcZuW2Al/GQ6C6q8RL1pg2DEvI/WGXMe8xkFzdQKtL m17Ncp//TqtA/jGmOvR8nLf2EYpkEybCb+nKSVO05X7YLETDEplRf08wFbT8W+So3BDw 4r/rtOgTA7Krbcr4AcdcL8EUTHCwTs1NAa36MCfkEIzHvRzZMBzDZ0fc6mi8qQ5bqgyJ AwkPcvxUkQw+eCBHuTrmdAc/+nBPhpc+fND7sl2vBsVuCyD6SgIf+EolAvPvXjgygjx9 JOZw== X-Gm-Message-State: APzg51DIxxopNhdrsKiQ3x64ZY0fVdE3oQPWVjK4KyN5ULtJ75vUwhn3 9x8ByaBX6DNNF+9Lrl5QNlYlxg== X-Google-Smtp-Source: ANB0VdZsWfTfSuKag/3Z6rh886KgErVu3rPxUANmHU3MahADgx6CpqbM2wE4j2HGPN4j2Ud1smuB1w== X-Received: by 2002:a50:8612:: with SMTP id o18-v6mr9742097edo.111.1537512528349; Thu, 20 Sep 2018 23:48:48 -0700 (PDT) Received: from localhost (cm-84.215.128.252.getinternet.no. [84.215.128.252]) by smtp.gmail.com with ESMTPSA id 11-v6sm2350980eds.23.2018.09.20.23.48.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Sep 2018 23:48:47 -0700 (PDT) Date: Fri, 21 Sep 2018 08:48:44 +0200 From: Gaute Hope Subject: Re: [PATCH] introduce new.rename_tags for renamed (moved) messages To: Michael J Gruber , notmuch@notmuchmail.org References: In-Reply-To: MIME-Version: 1.0 User-Agent: astroid/v0.13-26-g9adbb0d0 (https://github.com/astroidmail/astroid) Message-Id: <1537512137.c6xa7drfmt.astroid@strange.none> Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha256; boundary="=-wN5dirZdwxsFargInyzH" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.26 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: Fri, 21 Sep 2018 06:48:53 -0000 --=-wN5dirZdwxsFargInyzH Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Michael J Gruber writes on July 6, 2018 16:04: > IMAP clients (such as webmail) use folders to mark messages as junk > etc., some even to mark messages as trash ("move to trash"). Such a > change is reported by notmuch as a rename; the message is not tagged > with new.tags since it is not new, so that there is no way to act upon a > rename. > > Introduce new.rename_tags (default: not set) which are added by `notmuch > new` to renamed messages. This allows to act upon renames, e.g. to keep > the IMAP folder structure in sync with tags with a tool like `afew` or > homecooked scripts simply by filtering for this tag in the same ways as > one would filter for new messages using new.tags. Hi, think this would be very useful. I suggested something similar way back[0] (no doubt bit-rotted by now), and seem to remember there were some issues with cases where a rename would not be detected. Might be worth checking out ! [0] id:1396800683-9164-1-git-send-email-eg@gaute.vetsj.com BTW: My use-case was solved by using `lastmod:` queries in keywsync [1] (later obsoleted by gmailieer[2]). [1] https://github.com/gauteh/abunchoftags [2] https://github.com/gauteh/gmailieer Regards, Gaute = --=-wN5dirZdwxsFargInyzH Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEwTgvpR+zk9CtKEuvmCen6KB0kCMFAluklEwACgkQmCen6KB0 kCOooQ//TemhP6onY37YWv+4q2IZ3njd6uDMyiULFXeXJEoJHRuIhhV/BteM1VKj hMrxA8AKYqRxi5WMgqNaW+U2e75itVF6aJN/0oTtN2Ms5KMX0dAIdMxXDfaL4Ii0 j5Ci0nZluzEjEUUNl8FombQuUiSs8Jn4VblAMGO/mf7LaQ90hiCIEPl1VUu+Z0by lrS4Q46+1pjcR2Wf48cMUmYfjTnV5NHy81Fq7bjX9ssLDflQpBhlUUUClnzSm3Pl t+SgIQR9tgOCiGb6aEzbhz8BWMAh+RidIknDcqL6/Jtifmcavb2fGER6WvFAAVfu egX0NBjF8RggX4/Ow0p1/IT7vil+aU7nQt4GFQJ0jdsI44N9Vf8hubACIGF6nMhp dqaOh14el7kBG8csClZKZWDH7BofIz8iPb2H0i4jNusF109rlJi8SGe1c9B6NOJI 0e+mv1K3c3N706EajQdzWlBiZZ5QMWFRjJLyeU5kd8nPRMNdjIhrJCQm/+spBi1l jFFEOufuAFwAOt+i/kz5X2tBwDw9A9qd8sd2bcDQm/Sy4dvVbPfs/lNLPO6VDuQ0 PJ0W4651fMJtoRWxZ4Ch8zuNP1wB2FyVSsD1aXJvD3tdPovz3coDuyS214Ea1+Bl ri2XbmxqfIyGsv/rtDACyOuYFYNCjv52ArKhPQNXwofPqpVWW9U= =D/qX -----END PGP SIGNATURE----- --=-wN5dirZdwxsFargInyzH--