#3986: send-hook for Cc and Bcc executed too late
-----------------------+------------------------------
Reporter: alahouze | Owner: mutt-dev
Type: defect | Status: closed
Priority: major | Milestone:
Component: mutt | Version:
Resolution: invalid | Keywords: send-hook my_hdr
-----------------------+------------------------------
Changes (by kevin8t8):
* status: new => closed
* resolution: => invalid
Comment:
Just to clarify my previous comment before I close this ticket. The send-
hook's purpose is to change settings based on the recipients of a message,
not to set such recipients.
If you need suggestions on how to make your desired changes, I would
advise emailing mutt-users. They are a creative bunch, and perhaps better
informed than whence you were told to report this as a bug.
One quick suggestion would be to try making the changes in a macro
instead:
{{{
# Override 'm' to set a Cc header
macro index,pager m "<enter-command>my_hdr Cc: Contact Example
<[email protected]><enter><mail>"
# Clean up the cc header so it doesn't appear for replies
send-hook . unmy_hdr cc
}}}
You could override 'm' as the above does, or use another key sequence just
for those cases you want the cc. Again, mutt-users may have better ideas.
--
Ticket URL: <https://dev.mutt.org/trac/ticket/3986#comment:2>
Mutt <http://www.mutt.org/>
The Mutt mail user agent