From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id WHQjEAnVBWXDsgAAG6o9tA:P1 (envelope-from ) for ; Sat, 16 Sep 2023 18:17:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WHQjEAnVBWXDsgAAG6o9tA (envelope-from ) for ; Sat, 16 Sep 2023 18:17:13 +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 D466E4434E for ; Sat, 16 Sep 2023 18:17:12 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=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; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694881033; a=rsa-sha256; cv=none; b=OUKai7sXlNaS04hkVCmxJNFKdsX1vg36aLLN1SF/Cg5ornsRFNe8nEYkhEC7jTP8BHLHMM 6WfMYvvpRWeD0iE5ruiHvGUuJ3PzLDOKQxKCBA9hA+bG71r4JPBjKo72TLYtRxHvkuMfDX xBb0AAGnNwPQnn9U26XWGet3QgLiV7T0JTnraUCmLwxrl3hVPanyv84AetqvN2OyL8EQ5g JngSzW5x6Vjv1u/xroWSLO/LrJ/CaV+VUa+daf50432Ffinh9NkVg91/dp6iNao1/LsGM2 dbLB8XUYOdz5uyNYvaHdp3vGVaEbhT5oi/0zuBA9N3BZ1SedBacqbB0k/hZL9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694881033; 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; bh=CPNrYwVZUNiRCuaDoPCWsd2D7frmPF2kPpZ3Imm5cKI=; b=HiRiHSB6uHXhdqixtgOgdpI7jKj3shIxicHpjzq7hdmtcFvlqRqbLmTN0bo9lrkCL7oEZi feWAWOaDP3uXrjJadE4GGFGkuEyxuVUAv9xjmA65pz1JHc8IQ5tOJyo2ECC7lt9xNMU5/s 8eYYMBvOLk+SQ00eBUIIzqChgCdZSRCb1bGJ1w8rwHxS7V5wfSdDcZ4YpO9ON0valua4zX taoTsIBKOiZOy87wAAMo0G8V0RGBTtSO3kglZZ1rbWruaCJDL67Dv2jPqH0xYYqQA5rPwe h6rmn0APsLvRVCSr4XWiePVgR7I6Uu72GIdg8xMGtDjLlExKeBo0SKpIZWwevA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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; dmarc=none Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 5E72B60A00; Sat, 16 Sep 2023 16:17:10 +0000 (UTC) Received: from phubs.tethera.net (phubs.tethera.net [192.99.9.157]) by mail.notmuchmail.org (Postfix) with ESMTPS id D3792609FE for ; Sat, 16 Sep 2023 16:17:07 +0000 (UTC) Received: from tethera.net (fctnnbsc51w-159-2-210-253.dhcp-dynamic.fibreop.nb.bellaliant.net [159.2.210.253]) by phubs.tethera.net (Postfix) with ESMTPS id BF8F7180066; Sat, 16 Sep 2023 13:17:03 -0300 (ADT) Received: (nullmailer pid 100090 invoked by uid 1000); Sat, 16 Sep 2023 16:17:03 -0000 From: David Bremner To: David Pinto , notmuch@notmuchmail.org Subject: Re: automatically changing FCC when From changes (or fill FCC only when sending) In-Reply-To: References: Date: Sat, 16 Sep 2023 13:17:03 -0300 Message-ID: <87bke2ozy8.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: H3ANCUN5YULDGZIAXCB4M5HLTMEV7RZS X-Message-ID-Hash: H3ANCUN5YULDGZIAXCB4M5HLTMEV7RZS X-MailFrom: david@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 X-Migadu-Spam-Score: -1.31 X-Spam-Score: -1.31 X-Migadu-Queue-Id: D466E4434E X-Migadu-Scanner: mx2.migadu.com X-TUID: HX5ScVE7chkN David Pinto writes: > > My case is that I have multiple email accounts and want the sent > messages saved on different directories based on the "From" address. > I've setup 'notmuch-fcc-dirs' accordingly. Now, when I start > composing a message (notmuch-user-agent), the FCC header is set to > whatever is the default "From" address. But if I change the "From" > address, the FCC header is not updated. That is the expected behaviour, yeah. > 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. 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. [1]: https://git.tethera.net/message-templ.git/