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

Previous Next

Package: emacs;

Reported by: Pranshu Sharma <pranshu <at> bauherren.ovh>

Date: Wed, 15 Jan 2025 13:55:01 UTC

Severity: normal

Done: Pranshu Sharma <pranshu <at> bauherren.ovh>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 75579 in the body.
You can then email your comments to 75579 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#75579; Package emacs. (Wed, 15 Jan 2025 13:55:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Pranshu Sharma <pranshu <at> bauherren.ovh>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 15 Jan 2025 13:55:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Pranshu Sharma <pranshu <at> bauherren.ovh>
To: bug-gnu-emacs <at> gnu.org
Subject: Archiving mail with compose-mail in message
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>




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#75579; Package emacs. (Wed, 15 Jan 2025 15:21:01 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Robert Pluim <rpluim <at> gmail.com>
To: <bug-gnu-emacs <at> gnu.org>
Cc: Pranshu Sharma <pranshu <at> bauherren.ovh>, 75579 <at> debbugs.gnu.org
Subject: Re: bug#75579: Archiving mail with compose-mail in message
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" <bug-gnu-emacs <at> gnu.org> 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
-- 




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#75579; Package emacs. (Wed, 15 Jan 2025 15:21:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#75579; Package emacs. (Wed, 15 Jan 2025 15:44:01 GMT) Full text and rfc822 format available.

Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Pranshu Sharma <pranshu <at> bauherren.ovh>
To: Robert Pluim <rpluim <at> gmail.com>
Cc: bug-gnu-emacs <at> gnu.org, 75579 <at> debbugs.gnu.org
Subject: Re: bug#75579: Archiving mail with compose-mail in message
Date: Thu, 16 Jan 2025 01:43:10 +1000
Robert Pluim <rpluim <at> gmail.com> 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 <at> gnu.org> 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ʼs 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.

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#75579; Package emacs. (Wed, 15 Jan 2025 15:44:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#75579; Package emacs. (Thu, 16 Jan 2025 12:30:02 GMT) Full text and rfc822 format available.

Message #20 received at 75579 <at> debbugs.gnu.org (full text, mbox):

From: Robert Pluim <rpluim <at> gmail.com>
To: Pranshu Sharma <pranshu <at> bauherren.ovh>
Cc: 75579 <at> debbugs.gnu.org
Subject: Re: bug#75579: Archiving mail with compose-mail in message
Date: Thu, 16 Jan 2025 13:29:10 +0100
>>>>> On Thu, 16 Jan 2025 01:43:10 +1000, Pranshu Sharma <pranshu <at> bauherren.ovh> said:

    Pranshu> Robert Pluim <rpluim <at> gmail.com> 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 <at> gnu.org> 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ʼs 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
-- 




Reply sent to Pranshu Sharma <pranshu <at> bauherren.ovh>:
You have taken responsibility. (Thu, 16 Jan 2025 12:36:01 GMT) Full text and rfc822 format available.

Notification sent to Pranshu Sharma <pranshu <at> bauherren.ovh>:
bug acknowledged by developer. (Thu, 16 Jan 2025 12:36:02 GMT) Full text and rfc822 format available.

Message #25 received at 75579-done <at> debbugs.gnu.org (full text, mbox):

From: Pranshu Sharma <pranshu <at> bauherren.ovh>
To: 75579-done <at> debbugs.gnu.org
Subject: Solution already exists
Date: Thu, 16 Jan 2025 22:35:08 +1000
(setq mail-user-agent 'gnus-user-agent)

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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 14 Feb 2025 12:24:20 GMT) Full text and rfc822 format available.

This bug report was last modified 127 days ago.

Previous Next


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