Is it possible to use send-hook to 'edit' a header
ಚಿರಾಗ್ ನಟರಾಜ್
mailinglist at chiraag.me
Wed Nov 25 13:46:05 UTC 2020
The way I did it for this list is:
send-hook ~tmutt-users at mutt.org "set from='ಚಿರಾಗ್ ನಟರಾಜ್ <mailinglist at chiraag.me>'"
You should be able to edit the mutt-users at mutt.org to be *@groups.io or something (you may have to escape the asterisk?) and then use set from='Name <first.name at my.domain>' as the command to run.
HTH!
- Chiraag
--
ಚಿರಾಗ್ ನಟರಾಜ್
Pronouns: he/him/his
25/11/20 09:26 ನಲ್ಲಿ, Chris Green <cl at isbd.net> ಬರೆದರು:
>
> Is there some sort of action/command I can run from send-hook that
> would allow 'editing' of a header?
>
> E.g. for the case I was recently enquiring about where groups.io munge
> certain senders' addresses the requirement would be to have a
> send-hook match on "via groups.io" in the From: header and would then
> change <first.name=my.domain at groups.io> to <first.name at my.domain>.
>
> It's a fairly easy sort of search/replace but I can't see any obvious
> way to implement it in mutt.
>
> It can be done for specific From: addresses by matching the address
> with a send-hook and using my_hdr to write a new From: (will that
> remove the orginal From: ?). However this would require a send-hook
> for every individual address.
>
> --
> Chris Green
-------------- next part --------------
A non-text attachment was scrubbed...
Name: publickey - mailinglist at chiraag.me - b0c8d720.asc
Type: application/pgp-keys
Size: 659 bytes
Desc: not available
URL: <http://lists.mutt.org/pipermail/mutt-users/attachments/20201125/491376ec/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 233 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mutt.org/pipermail/mutt-users/attachments/20201125/491376ec/attachment.asc>
More information about the Mutt-users
mailing list