From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id uEb9K6fPDGWsIQAAauVa8A:P1 (envelope-from ) for ; Fri, 22 Sep 2023 01:20:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uEb9K6fPDGWsIQAAauVa8A (envelope-from ) for ; Fri, 22 Sep 2023 01:20:07 +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 52FC344A56 for ; Fri, 22 Sep 2023 01:20:07 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20230601 header.b=cosfHfrN; 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; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695338407; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Kr32T22VWVAQCzZG9mZ0rK9NgQtPoYmusT4k23S2mo0=; b=gBwnUVw+4CRqx284GuLlHEUt1rdg+MO/lPSq5Qfn6+UEkkO4RU+PxPfe4ZueXaL1tbxTc6 TlKw0Tq9wTgFIxCY1+bAQyv3S6AW4icHaEfGzJtVjYiBEIHbJfAsW79lROgcS5tsqdJG5A RISSdhuFwp3nFFL96bDNzNv8YdaTf2rklYuMhPLeClu4AR+AsSVuPcM1ml9I3xNJoD1tDT CppomljtxApr5DKy3JaiTsCsfNlt/uHuWseMnVPI/eClZCfxxz82vNxpR1UxNIqEM/A8UT ym+wTB+BRQnx94kEsanfc2atFGQ9ZVFAG5V6GwlNq6C16373aPPLfOkACEo6qw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695338407; a=rsa-sha256; cv=none; b=l//MnjuvU2n2rK6f9fROUNa9J4QOHqGX7HlW3l+BfHO5+JczDhIyHxvgHLaDFpRXKajmsK O7AaOtcWeyv12GE8H/2r6wM4/1Zb+OF1oGUjeRIKkSe+cZINsw4EIa+JUnPsvy7jjecE4F 4AsErbKlZ56ulxf8k1PR/DiIvRs0YL52exKiCEZ88pfGAi41MUw4aFs4q8C3gFZ2xUF3mE nAGfr7mI9yCYDkBUt3x33Na0jsku9mDeUAjwe+jXSk0PMMwHKlaoBVLsCqWXjJW9qtWUbn UTYjWayvJNmYZYzuppb4pq+QxF8StC63R+KplsL/a+FF70z5qtrRvkq/Orh67A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20230601 header.b=cosfHfrN; 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; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id BBFED60A22; Thu, 21 Sep 2023 23:20:03 +0000 (UTC) Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by mail.notmuchmail.org (Postfix) with ESMTPS id DF4BE60A1E for ; Thu, 21 Sep 2023 23:20:00 +0000 (UTC) Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-3175e1bb38cso318986f8f.1 for ; Thu, 21 Sep 2023 16:20:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695338400; x=1695943200; darn=notmuchmail.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=1feGGAqzXeMavXOlf77szj9j9RFYbJ6QSZj+3+j8qCg=; b=cosfHfrNY63NuInl+jqLwmvMDN7Jwud6zddzsU2Np/91pZ8j52POA0o0BQl352JOqd UI2Gl8zzj98BbvZz1bGR2IgMFy5pf+0fQsoSrd4qm0UTpy/JDdnxfQ5v5qK1hf9Kezh8 lW3lhgfzecS3choa9yT8Rq+5bwasg57gktSlyr598/uZ9pwLv1br/lxpjvDZjt1+RGEe vp8xB9OtHyoQW+7u8cdS8RiOqs7ULEfHIZGgn3jXaWO82BUiETxlta//eiKjJeKnyCxg LNrvpr1fdazoy816PwmifaKfcrn4p4qOrWi3o1DdRvty8T18Yu4yxH9Mv2pGh6iFtlun j0yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695338400; x=1695943200; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1feGGAqzXeMavXOlf77szj9j9RFYbJ6QSZj+3+j8qCg=; b=R90jOMtb6uDPi+R3FClO666UYrRI/VQRnWzlidCdSw6Tm980qg1aekUabsgyDmr8HK q044POZHoxk/vzl7aB6tlvHTHCr2XfnZCzKDT9xTsmqjl67xvTz+pe/sVg09TopxW11W 9Dw3BQ98pVoCsTL4H7JIPI6KekCeQRAIVgfgIOmkqfaRPV/hanICTjj7kL9IY8yaNtx8 Vw3D4aKJI1aXEynFfWcTgbjojr7urXLanHGWK/8srVWLGxbPBs7ucwW0fRvN+qTp2qJ/ aDhHzAxm7Z3bsvSWQpNzjl+luIWXAUs12tOI9VtfHepMZpjhKH+h3VcLMSxkHj7TDp0o cXEQ== X-Gm-Message-State: AOJu0Yzy0IVWkqoyCPJA0AKSAwMZqlLdIsX1MnU990CR/ysUaX4z2RP2 PHJU74dPPRn8yI+O/vXwQ6M4pc2hPbVlCfIbykA= X-Google-Smtp-Source: AGHT+IFITi9d2zNWZLh43wJ+4xqTyHRG+VZ/ZQOOHtzVQSQ/sbZzpahUBPy9bJrhgW+y+HLA3uFigv5z3jC6fWyCOrY= X-Received: by 2002:adf:f688:0:b0:319:7624:4ca2 with SMTP id v8-20020adff688000000b0031976244ca2mr5678941wrp.0.1695338399714; Thu, 21 Sep 2023 16:19:59 -0700 (PDT) MIME-Version: 1.0 References: <87bke2ozy8.fsf@tethera.net> In-Reply-To: <87bke2ozy8.fsf@tethera.net> From: David Pinto Date: Thu, 21 Sep 2023 23:19:37 +0000 Message-ID: Subject: Re: automatically changing FCC when From changes (or fill FCC only when sending) To: David Bremner , notmuch@notmuchmail.org Message-ID-Hash: 5WYS2OGHVXQ77A6RDIKDFVQKQPEYGAJ7 X-Message-ID-Hash: 5WYS2OGHVXQ77A6RDIKDFVQKQPEYGAJ7 X-MailFrom: carandraug@gmail.com 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 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 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -0.04 X-Spam-Score: -0.04 X-Migadu-Queue-Id: 52FC344A56 X-TUID: RMxBLdULHIaB On Sat, 16 Sept 2023 at 16:17, David Bremner wrote: > > David Pinto writes: > > [...] > > Is there a way to either have the FCC header changed when the "From" > > address changes? Or maybe only add the FCC header when sending > > the message? > > Generally I think people like the ability to hand-edit the header, so I > don't think adding it at send time would work for everyone. I do > something related based on address completion: I update the From header > based on To. Thank you for your reply. I see what you mean, how changing the FCC would prevent the ability to manually edit the FCC. But what about updating the FCC when the "From" changes? When starting a new message, and assuming that there is more that one possible "From", the default "From" will often be wrong. I would also expect one to set the "From" before any manual changes to "FCC". If so, then I think it could make sense to update the "FCC" when the "From" changes since there would be no manual adjustment to FCC lost. You mention updating the "From" when the "To" changes with the notmuch-address-post-completion-functions hook. Could there be a hook for when the "From" changes which I could use to change the FCC? > I use message-templ [1], along with > notmuch-address-post-completion-functions. My solution is a bit niche > because message-templ is a bit obscure, but I'm happy to go into details > if you are interested. This message-templ seems ideal for another issue of mine. I will look more into it. Thank you David