Groups | Search | Server Info | Login | Register
Groups > gnu.emacs.gnus > #7874
| 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:32 +0100 |
| Organization | FUB-IT, Freie Universität Berlin |
| Message-ID | <87jywmkk4d.fsf@zedat.fu-berlin.de> (permalink) |
| References | <87a4xmgnxy.fsf@zedat.fu-berlin.de> <87zf5krb7f.fsf@posteo.de> <87wm0mkl99.fsf@zedat.fu-berlin.de> |
"Loris Bennett" <loris.bennett@fu-berlin.de> writes: > 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. Actually, I realise that when I run gnus-summary-resend-message-edit 'gnus-alias' is not involved in any way. So GCC is just set based on the value of 'gnus-gcc-self-resent-messages'. Furthermore, although GCC is defined for all the identities in 'gnus-alias', 'gnus-message-archive-group' was only defined for *one* of the corresponding methods defined in 'gnus-secondary-select-methods'. It was precisely this one value for GCC which was used. Once I added the missing 'gnus-message-archive-group' to the secondary select method for which the problem occurred, the issue was resolved. Thanks for helping me think more clearly, Mekeor! -- This signature is currently under constuction.
Back to gnu.emacs.gnus | Previous | Next — Previous in thread | Next in thread | Find similar
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