Subject: bug#75579: closed (Solution already exists)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 16 Jan 2025 12:36:02 +0000

Your bug report

#75579: Archiving mail with compose-mail in message

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
75579: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=75579
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Solution already exists
From: Pranshu Sharma <[email-masked]>
To: [email-masked]
Date: Thu, 16 Jan 2025 22:35:08 +1000
List-Id: <debbugs-submit.debbugs.gnu.org>

(setq mail-user-agent 'gnus-user-agent)

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

Subject: Archiving mail with compose-mail in message
From: Pranshu Sharma <[email-masked]>
To: [email-masked]
Date: Wed, 15 Jan 2025 23:53:29 +1000
List-Id: <debbugs-submit.debbugs.gnu.org>

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>