GNU bug report logs - #75579
Archiving mail with compose-mail in message

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Pranshu Sharma <pranshu@HIDDEN>; dated Wed, 15 Jan 2025 13:55:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 75579 <at> debbugs.gnu.org:


Received: (at 75579) by debbugs.gnu.org; 16 Jan 2025 12:29:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 16 07:29:21 2025
Received: from localhost ([127.0.0.1]:60348 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tYOzx-0007ib-61
	for submit <at> debbugs.gnu.org; Thu, 16 Jan 2025 07:29:21 -0500
Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:49398)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <rpluim@HIDDEN>) id 1tYOzu-0007iN-3J
 for 75579 <at> debbugs.gnu.org; Thu, 16 Jan 2025 07:29:19 -0500
Received: by mail-wm1-x32d.google.com with SMTP id
 5b1f17b1804b1-43623f0c574so5150255e9.2
 for <75579 <at> debbugs.gnu.org>; Thu, 16 Jan 2025 04:29:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1737030551; x=1737635351; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id
 :reply-to; bh=H725Gbp751Vc+vhyrUovNJtklMjC7SHx1AKj/3srWxM=;
 b=D+vg0N4Shz9R1bto+3xlgU7YS1KbNxrizXK5QfkNG6U0pYADfCPRvNvLlh1EW/FV8u
 VREbTFdxbrI/zOKjPbeCR+GlLglSAVJ5Dv/mse62gunRSVBWFz9VPC+7ZVrCZaGxu7Yh
 B5LEhNCBWT9gY6WtRerWPRmx/OSkMa1iiV26QA2mDcJnAq4B2e88rCK7aBBctHCkJQYa
 P8eQo3T7zK2jLGiD0N7MWH9ge1YgU09y640R4ESBPpJ/IV/eXq9KxARqRmF4CP6T1x0d
 8XD/9T9PNBU0gV8LvkKB3nFRg7HSjpWyb7ubo8MHhk7VsuCmX/Yvfz058R6yU5LB7gxG
 geDQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1737030551; x=1737635351;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=H725Gbp751Vc+vhyrUovNJtklMjC7SHx1AKj/3srWxM=;
 b=ArzXcA4PB+yNiN3Q+MiarWdpY9F0LBfHzdTt8p4SWfSU+EKjlpaPtuvsmgisoLKj4P
 NqCE3WNIL20n0KSAzugd0MnAvcSEb24CAp35NmSbY3qw7ZuiNYtD4HkxXZq8XC0YppIa
 Wg+InpmXrEAHuFRwtQfrAlpopK6LHximRvPLmu4A9LK6arvzzdv7W4B0Uk654sv7DQRn
 IKS86fhTB02KwjmhViEUrzwWdyPCaTN6FYXfWVrOBVb3LWrQjdwAhJporMICRgmn4nLQ
 4xcDl3IE/GkoLfqi/TeOUBnU6G3aGU+qo/mOw706NCGb+/YnyV8/7ACtQ3cax/2+QRrt
 /Eng==
X-Gm-Message-State: AOJu0YybLwl+4lG6vNHVAeOBSUTX6S1a63RqO2lpRjAdHVKfkTiMfVTP
 BIxwCn0BjDJp5T4eU36NKtrv81a44LWiLwpUpqkPyVvLA1/6x8JbBC4SmQ==
X-Gm-Gg: ASbGncvKAOK8jAXkfMpyzH9Z+Rf9dQrR2jwp6fp6b/2/W8sEcyqz54MJs3yt71TKjFx
 aVrjqCVH7pJyOgGZ91E6H2m/c7X87y5p15KtCzNtjbxGngNYJNiW5kVlT5KbX9p1MAr97bpQ5M+
 Jf5nT9EWu18gmtjjGbU1S4yWW24LIwow1FAgEpq0GDrWq+UYlAwiMYlr5DBeCSlh8RKNRrRg6Vu
 +RE0zgU7QC2k/axUKgX3ytWO1QLwFxMHy5rua3sOTpD
X-Google-Smtp-Source: AGHT+IHjbDN5eEWoIC7J010//Y8EHodCuK3Urm23WEHVIR6kbaw5b77JbqXMiPvIK5P7dT6+p2xlIg==
X-Received: by 2002:a05:6000:4913:b0:385:fbb7:672d with SMTP id
 ffacd0b85a97d-38a8735638dmr27911393f8f.52.1737030551232; 
 Thu, 16 Jan 2025 04:29:11 -0800 (PST)
Received: from rltb ([2a01:e0a:3f3:fb51:d525:3c1b:114c:c465])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-38a8e37d085sm20680187f8f.13.2025.01.16.04.29.10
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 16 Jan 2025 04:29:10 -0800 (PST)
From: Robert Pluim <rpluim@HIDDEN>
To: Pranshu Sharma <pranshu@HIDDEN>
Subject: Re: bug#75579: Archiving mail with compose-mail in message
In-Reply-To: <87jzawozg1.fsf@HIDDEN> (Pranshu Sharma's message of "Thu, 
 16 Jan 2025 01:43:10 +1000")
References: <87wmew89pi.fsf@HIDDEN> <87msfsf6j7.fsf@HIDDEN>
 <87jzawozg1.fsf@HIDDEN>
Date: Thu, 16 Jan 2025 13:29:10 +0100
Message-ID: <871px3eycp.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75579
Cc: 75579 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> On Thu, 16 Jan 2025 01:43:10 +1000, Pranshu Sharma <pranshu@bauherren=
.ovh> said:

    Pranshu> Robert Pluim <rpluim@HIDDEN> writes:
    >>>>>>> On Wed, 15 Jan 2025 23:53:29 +1000, Pranshu Sharma via "Bug
    >> reports for GNU Emacs, the Swiss army knife of text editors"
    >> <bug-gnu-emacs@HIDDEN> said:
    >>=20
    Pranshu> Normally if you send a mail in gnus, it gets archived in
    Pranshu> 'sent' folder,
    Pranshu> however this is not the case for 'compose-mail'.
    >>=20
    Pranshu> I tried modified:
    Pranshu> (setq message-default-headers "Gcc: nnfolder+archive:sent")
    >>=20
    Pranshu> But this would add duplicate line when sending through
    Pranshu> gnus and through
    Pranshu> C-x m.  As far as I can tell, there is no way to make it
    Pranshu> work properly
    Pranshu> without using some hacky method like having a function
    Pranshu> check if thsi
    Pranshu> line exists in a message-mode hook.
    >>=20
    >> What=CA=BCs your 'mail-user-agent' set to? If you want to get "gcc"
    >> populated, setting it to 'gnus-user-agent' should be enough.

    Pranshu> Thanks, that worked.

So can we close this bug? I can do it, or you can do it by sending
email to 75579-done <at> debbugs.gnu.org (ideally with a reason for closure
:-))

Robert
--=20




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75579; Package emacs. Full text available.

Message received at 75579 <at> debbugs.gnu.org:


Received: (at 75579) by debbugs.gnu.org; 15 Jan 2025 15:43:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 15 10:43:33 2025
Received: from localhost ([127.0.0.1]:58363 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tY5YL-0007Et-2N
	for submit <at> debbugs.gnu.org; Wed, 15 Jan 2025 10:43:33 -0500
Received: from mail.bauherren.ovh ([45.32.179.127]:53832)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <pranshu@HIDDEN>)
 id 1tY5YH-0007EP-Gg
 for 75579 <at> debbugs.gnu.org; Wed, 15 Jan 2025 10:43:31 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bauherren.ovh;
 s=mail; t=1736955802;
 bh=4DZe5iGiYMpvMxUk6N1d+SNkiHfnk4Zk8H1Q3yPGYtw=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=EsfW6aI1NYWb6qr7OXQJ8+lkH3mY23yt7PZ3Y4QEHJjY4dRKhF14t0o44mHTJTF7H
 /gx4vgSOrpXodyt0M7QGyL/iiSdKahfh38/di5KEdDaOd/9CDlaEClLc122J0EsrDf
 o4QIP1fe5z8Z8ggFofwqvijTTKJhxTUs99uc3zh6UCx/zD9N8oi2bdVc6WqbJf4y1C
 dWHa5jEKvGeCyfQWll2qcS9ciPZuv+iViKzFxlcKU1bEETdayg+Hl7TZd87Vuf0dTB
 KFK6ZnpRZGNU3IIlCcSSpxpxNKKtKCJ3dOR7qFQQPZOoajCNVS+8if4KvO9J5MlmaM
 RrL1RGYFEjJSA==
From: Pranshu Sharma <pranshu@HIDDEN>
To: Robert Pluim <rpluim@HIDDEN>
Subject: Re: bug#75579: Archiving mail with compose-mail in message
In-Reply-To: <87msfsf6j7.fsf@HIDDEN> (Robert Pluim's message of "Wed, 15
 Jan 2025 16:20:12 +0100")
References: <87wmew89pi.fsf@HIDDEN> <87msfsf6j7.fsf@HIDDEN>
Date: Thu, 16 Jan 2025 01:43:10 +1000
Message-ID: <87jzawozg1.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75579
Cc: bug-gnu-emacs@HIDDEN, 75579 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Robert Pluim <rpluim@HIDDEN> writes:

>>>>>> On Wed, 15 Jan 2025 23:53:29 +1000, Pranshu Sharma via "Bug
> reports for GNU Emacs, the Swiss army knife of text editors"
> <bug-gnu-emacs@HIDDEN> said:
>
>     Pranshu> Normally if you send a mail in gnus, it gets archived in
>     Pranshu> 'sent' folder,
>     Pranshu> however this is not the case for 'compose-mail'.
>
>     Pranshu> I tried modified:
>     Pranshu> (setq message-default-headers "Gcc: nnfolder+archive:sent")
>
>     Pranshu> But this would add duplicate line when sending through
>     Pranshu> gnus and through
>     Pranshu> C-x m.  As far as I can tell, there is no way to make it
>     Pranshu> work properly
>     Pranshu> without using some hacky method like having a function
>     Pranshu> check if thsi
>     Pranshu> line exists in a message-mode hook.
>
> What=CA=BCs your 'mail-user-agent' set to? If you want to get "gcc"
> populated, setting it to 'gnus-user-agent' should be enough.

Thanks, that worked.

--=20
Pranshu Sharma <https://p.bauherren.ovh>




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75579; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 15 Jan 2025 15:43:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 15 10:43:38 2025
Received: from localhost ([127.0.0.1]:58366 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tY5YQ-0007FH-EG
	for submit <at> debbugs.gnu.org; Wed, 15 Jan 2025 10:43:38 -0500
Received: from lists.gnu.org ([2001:470:142::17]:37630)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <pranshu@HIDDEN>)
 id 1tY5YN-0007Ee-BK
 for submit <at> debbugs.gnu.org; Wed, 15 Jan 2025 10:43:36 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <pranshu@HIDDEN>)
 id 1tY5YE-000121-SU
 for bug-gnu-emacs@HIDDEN; Wed, 15 Jan 2025 10:43:26 -0500
Received: from mail.bauherren.ovh ([45.32.179.127])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <pranshu@HIDDEN>)
 id 1tY5YC-0001aU-Re
 for bug-gnu-emacs@HIDDEN; Wed, 15 Jan 2025 10:43:26 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bauherren.ovh;
 s=mail; t=1736955802;
 bh=4DZe5iGiYMpvMxUk6N1d+SNkiHfnk4Zk8H1Q3yPGYtw=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=EsfW6aI1NYWb6qr7OXQJ8+lkH3mY23yt7PZ3Y4QEHJjY4dRKhF14t0o44mHTJTF7H
 /gx4vgSOrpXodyt0M7QGyL/iiSdKahfh38/di5KEdDaOd/9CDlaEClLc122J0EsrDf
 o4QIP1fe5z8Z8ggFofwqvijTTKJhxTUs99uc3zh6UCx/zD9N8oi2bdVc6WqbJf4y1C
 dWHa5jEKvGeCyfQWll2qcS9ciPZuv+iViKzFxlcKU1bEETdayg+Hl7TZd87Vuf0dTB
 KFK6ZnpRZGNU3IIlCcSSpxpxNKKtKCJ3dOR7qFQQPZOoajCNVS+8if4KvO9J5MlmaM
 RrL1RGYFEjJSA==
From: Pranshu Sharma <pranshu@HIDDEN>
To: Robert Pluim <rpluim@HIDDEN>
Subject: Re: bug#75579: Archiving mail with compose-mail in message
In-Reply-To: <87msfsf6j7.fsf@HIDDEN> (Robert Pluim's message of "Wed, 15
 Jan 2025 16:20:12 +0100")
References: <87wmew89pi.fsf@HIDDEN> <87msfsf6j7.fsf@HIDDEN>
Date: Thu, 16 Jan 2025 01:43:10 +1000
Message-ID: <87jzawozg1.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=45.32.179.127; envelope-from=pranshu@HIDDEN;
 helo=mail.bauherren.ovh
X-Spam_score_int: -16
X-Spam_score: -1.7
X-Spam_bar: -
X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1,
 DKIM_SIGNED=0.1, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
 RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
X-Debbugs-Envelope-To: submit
Cc: bug-gnu-emacs@HIDDEN, 75579 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.1 (/)

Robert Pluim <rpluim@HIDDEN> writes:

>>>>>> On Wed, 15 Jan 2025 23:53:29 +1000, Pranshu Sharma via "Bug
> reports for GNU Emacs, the Swiss army knife of text editors"
> <bug-gnu-emacs@HIDDEN> said:
>
>     Pranshu> Normally if you send a mail in gnus, it gets archived in
>     Pranshu> 'sent' folder,
>     Pranshu> however this is not the case for 'compose-mail'.
>
>     Pranshu> I tried modified:
>     Pranshu> (setq message-default-headers "Gcc: nnfolder+archive:sent")
>
>     Pranshu> But this would add duplicate line when sending through
>     Pranshu> gnus and through
>     Pranshu> C-x m.  As far as I can tell, there is no way to make it
>     Pranshu> work properly
>     Pranshu> without using some hacky method like having a function
>     Pranshu> check if thsi
>     Pranshu> line exists in a message-mode hook.
>
> What=CA=BCs your 'mail-user-agent' set to? If you want to get "gcc"
> populated, setting it to 'gnus-user-agent' should be enough.

Thanks, that worked.

--=20
Pranshu Sharma <https://p.bauherren.ovh>




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75579; Package emacs. Full text available.

Message received at 75579 <at> debbugs.gnu.org:


Received: (at 75579) by debbugs.gnu.org; 15 Jan 2025 15:20:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 15 10:20:23 2025
Received: from localhost ([127.0.0.1]:58319 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tY5Bv-0006C7-L6
	for submit <at> debbugs.gnu.org; Wed, 15 Jan 2025 10:20:23 -0500
Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:50184)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <rpluim@HIDDEN>) id 1tY5Bs-0006Bs-2W
 for 75579 <at> debbugs.gnu.org; Wed, 15 Jan 2025 10:20:22 -0500
Received: by mail-wm1-x329.google.com with SMTP id
 5b1f17b1804b1-43690d4605dso47957625e9.0
 for <75579 <at> debbugs.gnu.org>; Wed, 15 Jan 2025 07:20:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1736954414; x=1737559214; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id
 :reply-to; bh=+oSZsKGmub2v/mXYOSSBPGzXutr25Y7YpnifX5TXn6c=;
 b=NbnL5v4iFdFWeCtdNoKaaqr8n2UZncT7lWFnBZad+003zz1fOoYGW987FqPanZ7nbo
 t8zPVdEv4DzPTOW3SblZnow3MU1fim/ghPrtgptm8WPFPyv7gigBuyKRE/LTa1Y95Vk4
 3OSyGe569gJKRE9p36Q1rLlbtRLWd7VqxzaxagLIR/cJ3t5+uZaVoOC3UiRFlmgjomFn
 GndjUBB2L8gnJPp8OzqLz3DFB6L+LdHx5rAwKJ/b2OwsBnSQAAy3mOkjrM5m5GsnhOaR
 MxLZKYfRhHyE3Yb0uqaCbXBbdluHtnWBi3T3exDvBL8l5BNT79OUKALZhqHTY3G/A/2Y
 xetA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1736954414; x=1737559214;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=+oSZsKGmub2v/mXYOSSBPGzXutr25Y7YpnifX5TXn6c=;
 b=aPTY6PPPTSURD6mjJX414vOPxLZweaz3RYfjcog1ZtD9gKJFlj05dUavs8w23YaOPN
 TXuta2b/V9idRWcOSiGz5k65drxlK30ZqndkWpFZB7VuSAHXBq6oyguW5zfZjgtOt6PM
 VWPLo07pFlL9uHrdfYoSHnqHocb6bnWLa2ix5Lozio4E8R8bYvoBVk0NISnbyAeTwZvf
 eQzMcFcxbWqBPpwgy4xUMWac3O9c6miDigT551wnV8Fyd28QFwXMtXP5eOR+EjatLkIv
 nSEHSFjeWMzufzbz8HzOQ7NmaYBRtkRxZrM2Ij+jbRIhlCWFPG7HXtPxdr1BMpPgyGPj
 rFgw==
X-Gm-Message-State: AOJu0Yz+HKW28Ik2/s1ncOLyFj+UGxs6Ww0ijwjtdYpqhQXe3fdOkp3t
 jhkA5HndgC8Favsl1pR5Ty3RBWgBBFBha5nlmBId2LKoumn6bRqW
X-Gm-Gg: ASbGncu65gtmcZKIm55m+3yagpjJa289t8iVIwHuWLgBGjaFaL3U2UGWZ0OSemNpKjd
 Pn3yv/+MENa0yEQd67N/aeWF+I2kQWb2IVcrQWO/DMipp9vfjzz8QOvv9pvEZ/TO8iqzqEfGy5/
 GQv9tk9eH8+rTnqlYn45ssDvdy8Y3ffIHvvFrBBBD5MvtnxPJI/P0w3RRc4os1+9cM+CcLHuRlw
 ScXigS5SaPXCPcmrbx7Ligj/C9Celbe+ChwBZk+seVM
X-Google-Smtp-Source: AGHT+IF26ei/zs6knBjapX6urq/q5Li5bcdi/9Hg4LBnW0G9/yWm4ozaNZW1RASIvq2egq0d58GoSg==
X-Received: by 2002:a05:600c:5750:b0:436:e3ea:4447 with SMTP id
 5b1f17b1804b1-436e3ea445dmr291464725e9.30.1736954413587; 
 Wed, 15 Jan 2025 07:20:13 -0800 (PST)
Received: from rltb ([2a01:e0a:3f3:fb51:d525:3c1b:114c:c465])
 by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-437c753c617sm26610465e9.37.2025.01.15.07.20.12
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 15 Jan 2025 07:20:13 -0800 (PST)
From: Robert Pluim <rpluim@HIDDEN>
To: <bug-gnu-emacs@HIDDEN>
Subject: Re: bug#75579: Archiving mail with compose-mail in message
In-Reply-To: <87wmew89pi.fsf@HIDDEN> (Pranshu Sharma via's message of
 "Wed, 15 Jan 2025 23:53:29 +1000")
References: <87wmew89pi.fsf@HIDDEN>
Date: Wed, 15 Jan 2025 16:20:12 +0100
Message-ID: <87msfsf6j7.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75579
Cc: Pranshu Sharma <pranshu@HIDDEN>, 75579 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> On Wed, 15 Jan 2025 23:53:29 +1000, Pranshu Sharma via "Bug reports f=
or GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>=
 said:

    Pranshu> Normally if you send a mail in gnus, it gets archived in 'sent=
' folder,
    Pranshu> however this is not the case for 'compose-mail'.

    Pranshu> I tried modified:
    Pranshu> (setq message-default-headers "Gcc: nnfolder+archive:sent")

    Pranshu> But this would add duplicate line when sending through gnus an=
d through
    Pranshu> C-x m.  As far as I can tell, there is no way to make it work =
properly
    Pranshu> without using some hacky method like having a function check i=
f thsi
    Pranshu> line exists in a message-mode hook.

What=CA=BCs your 'mail-user-agent' set to? If you want to get "gcc"
populated, setting it to 'gnus-user-agent' should be enough.

Robert
--=20




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75579; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 15 Jan 2025 15:20:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 15 10:20:28 2025
Received: from localhost ([127.0.0.1]:58322 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tY5C0-0006CS-AG
	for submit <at> debbugs.gnu.org; Wed, 15 Jan 2025 10:20:28 -0500
Received: from lists.gnu.org ([2001:470:142::17]:44338)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <rpluim@HIDDEN>) id 1tY5Bw-0006Bx-5o
 for submit <at> debbugs.gnu.org; Wed, 15 Jan 2025 10:20:24 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <rpluim@HIDDEN>) id 1tY5Bq-0006Tt-6g
 for bug-gnu-emacs@HIDDEN; Wed, 15 Jan 2025 10:20:18 -0500
Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <rpluim@HIDDEN>) id 1tY5Bo-0006Dc-L5
 for bug-gnu-emacs@HIDDEN; Wed, 15 Jan 2025 10:20:17 -0500
Received: by mail-wm1-x336.google.com with SMTP id
 5b1f17b1804b1-436a39e4891so47849955e9.1
 for <bug-gnu-emacs@HIDDEN>; Wed, 15 Jan 2025 07:20:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1736954414; x=1737559214; darn=gnu.org;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id
 :reply-to; bh=+oSZsKGmub2v/mXYOSSBPGzXutr25Y7YpnifX5TXn6c=;
 b=XA+nfBv3h6YP5mCsRWYmftpJHx/MamQDiyuvYyZEK/WIl5xVse/x8nnAlznUhvv4sR
 EhvnIP35sDD8mUsbeoYqNGWw2pO4k03WxosQ3JMIyD5xYk07QwpisHwkQdKwbsLzCMRz
 gqJZKNri6w9wkBe70ltPTi7ONykKKId4MY0OLWy8W4vQYZ8Oc7BraivjALy8AiwHvaMm
 L9j+a/pEmpVS2pVSlU3EqRkt3Txuj5NDwk7LUpZaXC9s9scuupe/T+Oyi6P1BM3LNmIp
 h6f+F7tgUpLC1YCj7x7yVSGPffbmvw/yjTP9qMm2PYqRxOKNFDfVG6E6rMBnld8CbfkE
 9UTQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1736954414; x=1737559214;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=+oSZsKGmub2v/mXYOSSBPGzXutr25Y7YpnifX5TXn6c=;
 b=SKrHTVsSxVZ24VBm6GGj9X2joQbd+AAV2ostQqnlbEywNP8/rGWyFsCeYjaDQFNz8Y
 1L2Kv8/38QdZQinXufQ7BSVv53eh6gwNIrJDsIarXyyVlZwxn091SQ60+yv9fNYTAeqB
 5amfwK0mn/DZEgI9GTsrNvuR7zyh0vKHrjCz20+lYo3KbzNvbAJ/TOO7W8sKFvQtTAJt
 niiufYuYV7sKi+svZtuxm1zPjYkMydElJ7Qyw3wNT4Iq+DSKuoj7DP8sSxYC2tqRA92l
 Lcr4dqIcQJTkfAPemElyP3piOcpJ5IiIL8hqAohRJ8oleIrY8Fqp5PzxRQg6ii6+aItS
 YyDw==
X-Gm-Message-State: AOJu0YxnNoesfqvkzWew7nHntYVL7howv39x3QzNw+RC9p31NhKnHIsH
 jRlqO/9gHPHZ3O65GUhXX4YAvR9mxwpR9JHff1S0GESwc8yTZVqDXB3N/A==
X-Gm-Gg: ASbGnct/Muy8vuFVErOmYQ3dprJ3mKrQ+93NcbSxTY7H/cI67andjSOpZHNCl21TYGZ
 TKy4559TW0aOpVKEiuFe7guN4SnpkBlgsK80GkVTRViqz5v9vZjqRxNwY9vROpdAujMXx0TUA6t
 s2m6tpRo97qU/4uljE2ENRGctipxRVLI+mW1+vb2ZrHoL8kZOKsXcOMf2zO4T6oOcD4w33Z9/uc
 EO6IKwNsVpUjpUHo1P01+YnoELkAky3yJjGsuSSuZ0M
X-Google-Smtp-Source: AGHT+IF26ei/zs6knBjapX6urq/q5Li5bcdi/9Hg4LBnW0G9/yWm4ozaNZW1RASIvq2egq0d58GoSg==
X-Received: by 2002:a05:600c:5750:b0:436:e3ea:4447 with SMTP id
 5b1f17b1804b1-436e3ea445dmr291464725e9.30.1736954413587; 
 Wed, 15 Jan 2025 07:20:13 -0800 (PST)
Received: from rltb ([2a01:e0a:3f3:fb51:d525:3c1b:114c:c465])
 by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-437c753c617sm26610465e9.37.2025.01.15.07.20.12
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 15 Jan 2025 07:20:13 -0800 (PST)
From: Robert Pluim <rpluim@HIDDEN>
To: <bug-gnu-emacs@HIDDEN>
Subject: Re: bug#75579: Archiving mail with compose-mail in message
In-Reply-To: <87wmew89pi.fsf@HIDDEN> (Pranshu Sharma via's message of
 "Wed, 15 Jan 2025 23:53:29 +1000")
References: <87wmew89pi.fsf@HIDDEN>
Date: Wed, 15 Jan 2025 16:20:12 +0100
Message-ID: <87msfsf6j7.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=2a00:1450:4864:20::336;
 envelope-from=rpluim@HIDDEN; helo=mail-wm1-x336.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
Cc: Pranshu Sharma <pranshu@HIDDEN>, 75579 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

>>>>> On Wed, 15 Jan 2025 23:53:29 +1000, Pranshu Sharma via "Bug reports f=
or GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>=
 said:

    Pranshu> Normally if you send a mail in gnus, it gets archived in 'sent=
' folder,
    Pranshu> however this is not the case for 'compose-mail'.

    Pranshu> I tried modified:
    Pranshu> (setq message-default-headers "Gcc: nnfolder+archive:sent")

    Pranshu> But this would add duplicate line when sending through gnus an=
d through
    Pranshu> C-x m.  As far as I can tell, there is no way to make it work =
properly
    Pranshu> without using some hacky method like having a function check i=
f thsi
    Pranshu> line exists in a message-mode hook.

What=CA=BCs your 'mail-user-agent' set to? If you want to get "gcc"
populated, setting it to 'gnus-user-agent' should be enough.

Robert
--=20




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#75579; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 15 Jan 2025 13:54:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 15 08:54:02 2025
Received: from localhost ([127.0.0.1]:57279 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tY3qM-0001UQ-Az
	for submit <at> debbugs.gnu.org; Wed, 15 Jan 2025 08:54:02 -0500
Received: from lists.gnu.org ([2001:470:142::17]:60432)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <pranshu@HIDDEN>)
 id 1tY3qK-0001Tv-Mt
 for submit <at> debbugs.gnu.org; Wed, 15 Jan 2025 08:54:01 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <pranshu@HIDDEN>)
 id 1tY3qD-00052P-Gi
 for bug-gnu-emacs@HIDDEN; Wed, 15 Jan 2025 08:53:53 -0500
Received: from mail.bauherren.ovh ([45.32.179.127])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <pranshu@HIDDEN>)
 id 1tY3q9-0008E3-2Y
 for bug-gnu-emacs@HIDDEN; Wed, 15 Jan 2025 08:53:53 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bauherren.ovh;
 s=mail; t=1736949221;
 bh=mhfVYvIepbb6XS4uUv99jYNxJ6Jlci24aoVhJWA38lg=;
 h=From:To:Subject:Date:From;
 b=thDMW9FIZVkEbeUSJGWZKZgyWPoTcXu/HNawepUovNlkrbnZ6vlwL3vDhFcxFKGdT
 dzC3l/vUjG8QuTP77UCuJSR9bTGfcjFC72/VQWGcCLuQ1b7vdFUhoYP9qNppe5xT/P
 SDICUP6WGqf733iJzewuxqIlYi+xt6yyqUWoHqngwswUNEszwjbnJAlcuFBQckWmZv
 qzXa7ruSLM8yIyJFWWF0B2/do75vvI1VuvA+pzdsYF474Ri9uDDfff8/iSwKjV0HSo
 YLnips79zAKvuQW73L3qL60GtKoR3IXCfoMVz2sz8qMgQIZNpgOPLIVP5dBI9uQrsD
 a7+lUpLtpiZwg==
From: Pranshu Sharma <pranshu@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: Archiving mail with compose-mail in message
Date: Wed, 15 Jan 2025 23:53:29 +1000
Message-ID: <87wmew89pi.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=45.32.179.127; envelope-from=pranshu@HIDDEN;
 helo=mail.bauherren.ovh
X-Spam_score_int: -16
X-Spam_score: -1.7
X-Spam_bar: -
X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1,
 DKIM_SIGNED=0.1, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
 RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.1 (/)


Normally if you send a mail in gnus, it gets archived in 'sent' folder,
however this is not the case for 'compose-mail'.

I tried modified:
(setq message-default-headers "Gcc: nnfolder+archive:sent")

But this would add duplicate line when sending through gnus and through
C-x m.  As far as I can tell, there is no way to make it work properly
without using some hacky method like having a function check if thsi
line exists in a message-mode hook.

-- 
Pranshu Sharma <https://p.bauherren.ovh>




Acknowledgement sent to Pranshu Sharma <pranshu@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#75579; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 16 Jan 2025 12:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.