Mutt alias for two fields

337 views Asked by At

When emailing to someone with mutt, I would like to have my messages automatically CC'd to someone. Typically, we are a team of academics working with a student, and I would like my exchanges with the student to be sent to others.

Mutt aliases seems to be on a "per field" basis. So I could use it to put my coworkers in an alias, but they would be in the "To:" field, not "CC". Is there a workaround?

Setting edit_headers to yes (and having a nice macro in my editor) would not help, since I'd like such a behavior for only a fraction of my communication. Modern tools like Slack/mattermost are also used, but not always.

1

There are 1 answers

5
Jakub Jindra On

Answer

Add following into your config:

alias coworkers [email protected], [email protected], [email protected]
my_hdr CC: coworkers

then all addresses listed in alias coworkers will be added to CC. You can employ hooks to better control to which newly composed messages or replies will my_hdr used or not.

References

neomutt docs: