From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eIQnGHxJmGAXlwAAgWs5BA (envelope-from ) for ; Sun, 09 May 2021 22:43:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 4Ge9E3xJmGCDXwAAbx9fmQ (envelope-from ) for ; Sun, 09 May 2021 20:43:40 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (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 B6C4925396 for ; Sun, 9 May 2021 22:43:39 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 0FC042717A; Sun, 9 May 2021 16:43:35 -0400 (EDT) Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by mail.notmuchmail.org (Postfix) with ESMTPS id 3055F27176 for ; Sun, 9 May 2021 16:43:33 -0400 (EDT) Received: by mail-wm1-x32c.google.com with SMTP id y124-20020a1c32820000b029010c93864955so9989689wmy.5 for ; Sun, 09 May 2021 13:43:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=h7Bjb/y65drEMdr3Fih+/wVwB7OtrGH6NwH5kQ78JQo=; b=VEuNTuV4CzRNt+vI2MCpndTsxb2JKxAUnCENYMNG4pgupY5kCK8bVOeUFIjAAVAibE CD+KGTZF/jf7J5d2sV1GQjNpo7dud+FqPr4KmIgnsa3BFL9FIGqnRRE/4A50yrznpqyC HfLXZw52Rnt2hhjrgxx3Nej8Jc04yYO6UpWnSUpXK4cwIJnBe2y3Ix+DylmJ6feW55cK 6KElpc9StiVnsXGlvNP2mf/NdLaQIiCgD4JFZqOuTeCgMukS8sUPgqjstlgFISWhXXBP 2qw0w2lPlCTVEPgV+tCqt7+vcTX+zyEvuXlDhOfwJR4JAc5Cxpbf+MrsekladIiBbo/M NqEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=h7Bjb/y65drEMdr3Fih+/wVwB7OtrGH6NwH5kQ78JQo=; b=KIY16SnI9q5Oh+ZpBII3j+8x7yJPTjn9nwu3znM895OGc+2mWpopNJJ54rnwViynod Wp7n3rL3shJAj4RbLKNDogJ0RQ11b2jfK/nlafMhdAaxeR7YfRRjOtoI9SJ10DR3HT/2 ntJuPHAzoT+EkvupNcttGUEq8ovF/n5YREj4NxxdYlLCwr4dSiNu0LNlbKDRJ80RwhwU e39RTaHrK+eL1jBYnNPGFFiyP4RVQuMvpSKlMB8tmO3jakmZxIiLGTUCP442T5MyCSm/ iwDxcJH3WSXL+1BIlYiCH+7uyqZH3o1oIJpg77LwRN/n6S4dg/kgfbZDZE3/mN5wb2m+ B64w== X-Gm-Message-State: AOAM532f1rJR3HCrNbU0U6lDMSoCV60BNk2ETiyyCOOCjLEwocCZY5PR Gg+Gq287rLBLsGx6UFcw3nOQNbRMgnN9XuOWiIUqTc/rQ1Hxmg== X-Google-Smtp-Source: ABdhPJyfj/NbNuX9DXuS7Ero0yCLSu9qVc4cYElDtPMqJTHzdXzyiNzKeeG/VeKhQKnuyP1z8SRnvLcwJCJGfylL7rY= X-Received: by 2002:a05:600c:4ecd:: with SMTP id g13mr22108888wmq.173.1620593008205; Sun, 09 May 2021 13:43:28 -0700 (PDT) MIME-Version: 1.0 References: <60971dc77decb_22cb620817@natae.notmuch> <87bl9kjlgo.fsf@tethera.net> In-Reply-To: <87bl9kjlgo.fsf@tethera.net> From: Felipe Contreras Date: Sun, 9 May 2021 15:43:17 -0500 Message-ID: Subject: Re: Is there a reason why the trashed flag is not synced? To: David Bremner Message-ID-Hash: JQRAW324OJ5BHAH2MNWXT6IHNRIQC4RK X-Message-ID-Hash: JQRAW324OJ5BHAH2MNWXT6IHNRIQC4RK X-MailFrom: felipe.contreras@gmail.com 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; suspicious-header CC: "notmuch@notmuchmail.org" X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620593019; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=K/OspyTCQMRwrXFZ+cV4i76+sK7XfPqapfq3qxjME6o=; b=jW3zzs5e4PP4lZxche27L4A6z4uBoPatuRyuV1i77HcAshSlPkT7BzNQcxfZ4ffXdi07Z7 vTBeSnKEy19gTXrVVZGHxIeUhdvk8zV+Ypw647jDI9589P+oPqSgLISGw8m03+hYR1E6XZ DJlhvQdpDyJRBIKRyQC3hNhwTAv4/aWN28QULBA78Rwj9N4PKwQypxjYuJyC1bqJ6b+YaO /9aO03SP6ABew3HqSbe1Ia32CtUgAXyTCPyKhX08ie2i+nWoHjsZQ5Ln5aEQvtzzB0M5EJ 766+byCjbG7S9WlqAWzUag5QkIxwcoQvUgvSyEDF/5jIYJbhU8O/S/Hb/hFyaw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620593019; a=rsa-sha256; cv=none; b=Cd1HQHxWagVHlcm+LRdK0fXVcd4N0Dm32YpWS2HAGuh3Opnh4AaGRC89kt5/raIGQ5p+rT kVbi2dlLT4qdN3UmohTLyZutaw7/+moDv7wqcbd4odO3/2helcbU4aH/f0Cic5MUNaMzwf 6ZJeyUyh3SDj/uE2nCfyHeAUDFWtzUAZdPLKu1tWWilbDOZOT9xz5fhCoYfVTuN7a72giG Q5Ld7nxkOtjDjcAtp4uXc9t1i173QRdb9j9H44EMFLgn5eSo/vXrHiCfXAhUKt/BlMkaHF z1D1gw+/eXUA/qqQvweQNiuStFqxIFssi7kyELfToXfMSSRkaOAU0OgWZux6Rg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=VEuNTuV4; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 0.06 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=VEuNTuV4; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: B6C4925396 X-Spam-Score: 0.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: p/5wqA5WuEiK On Sun, May 9, 2021 at 4:38 AM David Bremner wrote: > Felipe Contreras writes: > > I understand deleting files is complex, but what's wrong with simply > > tagging the T (trashed) messages as 'deleted'? > > > > I'm using synchronize_flags=true. > > The current lack of synchronization is intentional, with the reasoning > explained in the commit message of [1]. I don't know if a one way sync > (only from T -> deleted) has been discussed. > https://git.notmuchmail.org/git/notmuch/commit/2c262042ac174d7bc96d6035ab9c88bd0abe7f35 This rationale makes sense to me, and I agree with the conclusion that such behavior "can be potentially dangerous". But the fact that something is potentially dangerous doesn't mean that it necessarily is. It makes sense that by default synchronize_flags=true doesn't sync the trash flag, but what's wrong with a new configuration synchronize_flags=all that does? That way it's the responsibility of the user to ensure that such potentially dangerous behavior can't happen before doing synchronize_flags=all. Cheers. -- Felipe Contreras