Subject: Archiving mail with compose-mail in message

From: Pranshu Sharma <[email-masked]>
Date: Wed, 15 Jan 2025 23:53:29 +1000

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>