Subject: Re: bug#75579: Archiving mail with compose-mail in message

From: Robert Pluim <[email-masked]>
Date: Wed, 15 Jan 2025 16:20:12 +0100

>>>>> On Wed, 15 Jan 2025 23:53:29 +1000, Pranshu Sharma via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <[email-masked]> 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 and 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 if thsi
    Pranshu> line exists in a message-mode hook.

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

Robert
--