From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#46029: 27.1; mail-archive-file-name cannot be changed once it is set. Date: Fri, 22 Jan 2021 09:42:25 +0200 Message-ID: <83pn1x5sf2.fsf@gnu.org> References: <87mtx1lfa4.fsf@muto.ca> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32260"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46029@debbugs.gnu.org To: Muto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 22 08:43:17 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l2r6C-0008G9-Ii for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Jan 2021 08:43:16 +0100 Original-Received: from localhost ([::1]:53260 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l2r6B-0002lb-5j for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Jan 2021 02:43:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2r5z-0002eQ-1V for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2021 02:43:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48417) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l2r5y-0006ov-QU for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2021 02:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l2r5y-0000P9-P9 for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2021 02:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Jan 2021 07:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46029 X-GNU-PR-Package: emacs Original-Received: via spool by 46029-submit@debbugs.gnu.org id=B46029.16113013541514 (code B ref 46029); Fri, 22 Jan 2021 07:43:02 +0000 Original-Received: (at 46029) by debbugs.gnu.org; 22 Jan 2021 07:42:34 +0000 Original-Received: from localhost ([127.0.0.1]:59962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l2r5W-0000OM-0x for submit@debbugs.gnu.org; Fri, 22 Jan 2021 02:42:34 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52112) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l2r5U-0000O2-RZ for 46029@debbugs.gnu.org; Fri, 22 Jan 2021 02:42:33 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59425) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l2r5O-0006Z6-Da; Fri, 22 Jan 2021 02:42:26 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3425 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l2r5N-00023R-NP; Fri, 22 Jan 2021 02:42:26 -0500 In-Reply-To: <87mtx1lfa4.fsf@muto.ca> (message from Muto on Thu, 21 Jan 2021 22:19:31 -0700) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:198359 Archived-At: > From: Muto > Date: Thu, 21 Jan 2021 22:19:31 -0700 > > If I activate my first account with: > M-x mail-muto > and start a new email with > C-x m > The Fcc line will look correct. > > But after that, if I use > M-x mail-muto2 > And start writing a new email, my signature, return address, and full > name are updated, but my Fcc still has the old value of: > "~/.emacs.d/mymail/muto/sent" > instead of the desired value: > "~/.emacs.d/mymail/muto2/sent" > > This bug works the other way around (loading account 2 first), and it > also occurs when I use 'mail-default-headers' instead of > 'mail-archive-file-name'. Are you using message-mode (as opposed to mail-mode) to compose your email messages? If so, I think you need to change the value of message-default-mail-headers when you switch accounts. message-mode picks up the values of mail-archive-file-name and mail-default-headers when it starts up, and computes from them the value of message-default-mail-headers, which it uses thereafter.