Groups | Search | Server Info | Login | Register


Groups > gnu.emacs.gnus > #7873

Re: How is GCC determined for gnus-summary-resend-message-edit?

From "Loris Bennett" <loris.bennett@fu-berlin.de>
Newsgroups gnu.emacs.gnus
Subject Re: How is GCC determined for gnus-summary-resend-message-edit?
Date 2026-02-09 16:08 +0100
Organization FUB-IT, Freie Universität Berlin
Message-ID <87wm0mkl99.fsf@zedat.fu-berlin.de> (permalink)
References <87a4xmgnxy.fsf@zedat.fu-berlin.de> <87zf5krb7f.fsf@posteo.de>

Show all headers | View raw


Hi Mekeor,

Mekeor Melire <mekeor@posteo.de> writes:

> 2026-02-06 11:34 loris.bennett@fu-berlin.de:
>
>> Hi,
>
> Hi Loris,
>
>> I use 'gnus-alias' to switch between various mail accounts and also roles with
>> single accounts and have GCC set differently for the different
>> cases.
>
> Personally, I have written my own set of commands for the feature
> set that is provided by gnus-alias, based on advices.
>
>> Sometimes I want to resend a message, usually when there was a typo in the TO
>> field.  However, when I run
>>
>>   gnus-summary-resend-message-edit
>>
>> the value of the GCC field is not the value corresponding to that of the
>> identity I used to send the message. 
>>
>> What determines how this filed is set?
>
> I'd guess it's because the definition of
> `gnus-summary-resend-message-edit' contains this expression:
>
> (add-hook 'message-header-setup-hook
>           #'gnus-summary-resend-message-insert-gcc
>           t)
>
> And (run-hooks 'message-header-setup-hook) happens before
> (run-hooks 'message-setup-hook) in the definition of
> `message-setup-1'.
>
> But I'm not sure if my analysis is correct because
> `gnus-alias-use-identity-1' from `gnus-alias' removes old extra
> headers before inserting the correct, identity-specific header:
>
> https://github.com/altruizine/gnus-alias/blob/11a0d73e7cec8cbc2001f3492081db1d23a018da/gnus-alias.el#L1127

Thanks for the analysis.  I'm not sure either.  I am actually using this
version of 'gnus-alias'

  https://github.com/hexmode/gnus-alias/tree/master

so I'll ask there.

Cheers,

Loris

-- 
This signature is currently under constuction.

Back to gnu.emacs.gnus | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

How is GCC determined for gnus-summary-resend-message-edit? "Loris Bennett" <loris.bennett@fu-berlin.de> - 2026-02-06 11:34 +0100
  Re: How is GCC determined for gnus-summary-resend-message-edit? Mekeor Melire <mekeor@posteo.de> - 2026-02-07 13:26 +0100
    Re: How is GCC determined for gnus-summary-resend-message-edit? "Loris Bennett" <loris.bennett@fu-berlin.de> - 2026-02-09 16:08 +0100
      Re: How is GCC determined for gnus-summary-resend-message-edit? "Loris Bennett" <loris.bennett@fu-berlin.de> - 2026-02-09 16:32 +0100
        Re: How is GCC determined for gnus-summary-resend-message-edit? Mekeor Melire <mekeor@posteo.de> - 2026-02-10 09:52 +0100

csiph-web