#3577: send-hook should not be executed if the mail is not going to be sent
-------------------------+--------------------------------------------------
Reporter: Y_Plentyn | Owner: mutt-dev
Type: enhancement | Status: new
Priority: minor | Milestone:
Component: mutt | Version:
Keywords: |
-------------------------+--------------------------------------------------
Comment(by vinc17):
I think this bug is invalid: as documented, send-hook is executed "after
getting the initial list of recipients" (and before the editor is
executed, so that the editor gets correct data). Thus Mutt cannot know
whether the message will be modified or not at this time. The user
apparently needs send2-hook, which "is matched every time a message is
changed".
BTW, I don't think that "push" should be allowed in these hooks (or at
least it should be discouraged), because the behavior depends on the
context (options...). If the goal is to set some subject in a hook,
there's the my_hdr command for that.
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3577#comment:1>
Mutt <http://www.mutt.org/>
The Mutt mail user agent