From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 22 00:19:48 2021 Received: (at submit) by debbugs.gnu.org; 22 Jan 2021 05:19:48 +0000 Received: from localhost ([127.0.0.1]:59930 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l2orI-0005AI-AH for submit@debbugs.gnu.org; Fri, 22 Jan 2021 00:19:48 -0500 Received: from lists.gnu.org ([209.51.188.17]:51366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l2orG-0005AA-JU for submit@debbugs.gnu.org; Fri, 22 Jan 2021 00:19:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53992) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2orG-0006Tk-Cy for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2021 00:19:42 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:39307) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2orD-0007oh-LH for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2021 00:19:42 -0500 X-Originating-IP: 75.159.225.7 Received: from ramp (d75-159-225-7.abhsia.telus.net [75.159.225.7]) (Authenticated sender: shack@muto.ca) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 6C21840004 for ; Fri, 22 Jan 2021 05:19:33 +0000 (UTC) From: Muto To: bug-gnu-emacs@gnu.org Subject: 27.1; mail-archive-file-name cannot be changed once it is set. Date: Thu, 21 Jan 2021 22:19:31 -0700 Message-ID: <87mtx1lfa4.fsf@muto.ca> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: permerror client-ip=217.70.183.194; envelope-from=shack@muto.ca; helo=relay2-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.6 (-) This bug occurs even if I disable my configuration. The variable 'mail-archive-file-name' can be set, but never re-set afterwards (setting it to nil before providing a new value does not work, either). I use rmail and Mailutils to check my email, and I switch back and forth between two accounts by using the following functions: ;; My first account (defun mail-muto () (interactive) (setq rmail-primary-inbox-list (list (concat "imaps://shack%40muto.ca" "@mail.gandi.net")) rmail-file-name "~/.emacs.d/mymail/muto/muto" rmail-default-file "~/.emacs.d/mymail/muto/muto" mail-archive-file-name "~/.emacs.d/mymail/muto/sent" user-mail-address "shack@muto.ca" user-full-name "Muto" smtpmail-default-smtp-server "mail.gandi.net" message-signature "Rock on! -Muto\nhttps://muto.ca") (message "%s"(propertize "Email account: Muto"))) ;; A second account that is uses all the same variables. (defun mail-muto2 () (interactive) (setq rmail-primary-inbox-list (list (concat "imaps://muto2%40example.com" "@mail.example.com")) rmail-file-name "~/.emacs.d/mymail/muto2/muto2" rmail-default-file "~/.emacs.d/mymail/muto2/muto2" mail-archive-file-name "~/.emacs.d/mymail/muto2/sent" user-mail-address "muto2@example.com" user-full-name "Muto2" smtpmail-default-smtp-server "mail.example.com" message-signature "Regards, -Muto2. ") (message "%s"(propertize "Email account: Muto2"))) ;; End of code snippit 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'. In GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.23, cairo version 1.16.0) Windowing system distributor 'The X.Org Foundation', version 11.0.12009000 System Description: Linux Mint 20.1 Recent messages: Loading /home/melon/.emacs.d/custom.el (source)... Loading paren...done Loading /home/melon/.emacs.d/custom.el (source)...done Starting Emacs daemon. When done with this frame, type C-x 5 0 Email account: Muto Making completion list... Configured using: 'configure CONFIG_SHELL=/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/bash SHELL=/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/bash --prefix=/gnu/store/8s3kp73c9qds8ychbhnk2h9b30aa84aa-emacs-27.1 --enable-fast-install --with-modules --with-cairo --disable-build-details' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS JSON PDUMPER GMP Important settings: value of $EMACSLOADPATH: /gnu/store/m5g5fzfbf25nc158swka8y6fw0nh1mgp-profile/share/emacs/site-lisp:/gnu/store/m5g5fzfbf25nc158swka8y6fw0nh1mgp-profile/share/emacs/27.1/lisp value of $LC_MONETARY: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: show-paren-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: ~/.emacs.d/lisp/jsonrpc hides /gnu/store/m5g5fzfbf25nc158swka8y6fw0nh1mgp-profile/share/emacs/27.1/lisp/jsonrpc Features: (shadow sort mail-extr warnings emacsbug message rmc puny format-spec rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils server pnk-theme paren cus-start cus-load dired-x dired dired-loaddefs moe-theme multiple-cursors mc-hide-unmatched-lines-mode mc-separate-operations rectangular-region-mode mc-mark-pop mc-mark-more thingatpt mc-cycle-cursors mc-edit-lines multiple-cursors-core advice rect finder-inf guix-emacs info slime-autoloads package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 84307 9536) (symbols 48 9933 1) (strings 32 29749 2491) (string-bytes 1 895302) (vectors 16 14514) (vector-slots 8 181363 10154) (floats 8 36 182) (intervals 56 266 0) (buffers 1000 14)) -- Rock on! -Muto https://muto.ca From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 22 02:42:34 2021 Received: (at 46029) by debbugs.gnu.org; 22 Jan 2021 07:42:34 +0000 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 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 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 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 Date: Fri, 22 Jan 2021 09:42:25 +0200 Message-Id: <83pn1x5sf2.fsf@gnu.org> From: Eli Zaretskii To: Muto In-Reply-To: <87mtx1lfa4.fsf@muto.ca> (message from Muto on Thu, 21 Jan 2021 22:19:31 -0700) Subject: Re: bug#46029: 27.1; mail-archive-file-name cannot be changed once it is set. References: <87mtx1lfa4.fsf@muto.ca> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 46029 Cc: 46029@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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. From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 22 02:59:31 2021 Received: (at 46029) by debbugs.gnu.org; 22 Jan 2021 07:59:31 +0000 Received: from localhost ([127.0.0.1]:59967 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l2rLv-0000ob-Hb for submit@debbugs.gnu.org; Fri, 22 Jan 2021 02:59:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l2rLu-0000oO-9A for 46029@debbugs.gnu.org; Fri, 22 Jan 2021 02:59:30 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59519) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l2rLo-0005mV-B2; Fri, 22 Jan 2021 02:59:24 -0500 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4475 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l2rLm-0007x7-Ht; Fri, 22 Jan 2021 02:59:23 -0500 Date: Fri, 22 Jan 2021 09:59:21 +0200 Message-Id: <83o8hh5rmu.fsf@gnu.org> From: Eli Zaretskii To: shack@muto.ca In-Reply-To: <83pn1x5sf2.fsf@gnu.org> (message from Eli Zaretskii on Fri, 22 Jan 2021 09:42:25 +0200) Subject: Re: bug#46029: 27.1; mail-archive-file-name cannot be changed once it is set. References: <87mtx1lfa4.fsf@muto.ca> <83pn1x5sf2.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 46029 Cc: 46029@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Fri, 22 Jan 2021 09:42:25 +0200 > From: Eli Zaretskii > Cc: 46029@debbugs.gnu.org > > 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. I've now added this nit to the respective doc strings. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 20 23:20:18 2021 Received: (at 46029-done) by debbugs.gnu.org; 21 Apr 2021 03:20:18 +0000 Received: from localhost ([127.0.0.1]:56609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZ3PW-0005qP-Fa for submit@debbugs.gnu.org; Tue, 20 Apr 2021 23:20:18 -0400 Received: from mail-pf1-f173.google.com ([209.85.210.173]:41551) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZ3PU-0005q7-VO for 46029-done@debbugs.gnu.org; Tue, 20 Apr 2021 23:20:17 -0400 Received: by mail-pf1-f173.google.com with SMTP id w6so12798972pfc.8 for <46029-done@debbugs.gnu.org>; Tue, 20 Apr 2021 20:20:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=oiNkLX35okoOIV5RckhF+AHqIaUI+1vtHVXDZA+6qCU=; b=gbE2YqW5ryBnFQFvLH2xU5bP9Db1cj6bapHlHsA6NC9afIz7KFnQBEjrXqBQBplUYj 1M0dCwWf2BZMXYpE/L7c0Kkk5FELE4i3WhIgD9WCMECFlwxkkUQ3egS44FfNvgMVcwdJ vC8/8Ntmk2mqw+CwXCpwJjE9JMsR4XZyr40urBRAqZaB6QaQNvgu6kTQ42vDEp17A4g+ LLoeRKVJUGGlJWc+dTLt1NAlTmiZDLw8nZ7e/gP4nzHBxEmIADGY1t5hCLIUCoLRPs0b q9yZ+fPQYcYAJZZrwBaBWfakUGpkJZKAZqPB8byctddnQ8Gg6gYD9ffEN9vMkYMKV2VY ZrGQ== X-Gm-Message-State: AOAM531sgVeLvoSTUhfJlHsD2JQCHPHyY6wtcFD736gT4YOS92mQeIxm ZhUNnqezEsFVVrB8oz7FZ/u4r5aGluLbg1MgnQtHgWpx X-Google-Smtp-Source: ABdhPJwxNIo2AyokvVDmWikN9ZDUwXJfzdtTRJfDuu/OhVgt8mG30PH761xvsTFsDd0r8q2q+GqS2nsCPU0+M9nbAOg= X-Received: by 2002:a17:90b:f0b:: with SMTP id br11mr8340752pjb.179.1618975211433; Tue, 20 Apr 2021 20:20:11 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 20 Apr 2021 22:20:11 -0500 From: Stefan Kangas In-Reply-To: <83o8hh5rmu.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 22 Jan 2021 09:59:21 +0200") References: <87mtx1lfa4.fsf@muto.ca> <83pn1x5sf2.fsf@gnu.org> <83o8hh5rmu.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Tue, 20 Apr 2021 22:20:11 -0500 Message-ID: Subject: Re: bug#46029: 27.1; mail-archive-file-name cannot be changed once it is set. To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 46029-done Cc: shack@muto.ca, 46029-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Eli Zaretskii writes: >> Date: Fri, 22 Jan 2021 09:42:25 +0200 >> From: Eli Zaretskii >> Cc: 46029@debbugs.gnu.org >> >> 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. > > I've now added this nit to the respective doc strings. There has been no followups within 12 weeks. I'm therefore assuming that the above resolved the issue, and I'm therefore closing this bug report. If this conclusion is incorrect and this is still an issue, please reply to this email (use "Reply to all" in your email client) and we can reopen the bug report. From unknown Mon Jun 23 13:10:23 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 19 May 2021 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator