On Mon, Feb 27, 2017 at 09:29:12PM +1100, Erik Christiansen wrote: > On 22.02.17 18:50, Erik Christiansen wrote: > > On 21.02.17 13:28, Kevin J. McCarthy wrote: > > > > > > You'll want to use the "push" command: > > > reply-hook '~f x...@yyy.asn.au' \ > > > 'push <edit-to><kill-line>z...@bigpond.com<enter>' > > > > > > *However*, this kind of thing is very delicate. > > > > With a 'y' in front of <edit-to>, it does actually work fine.
Great! > My mistake was expecting the reply-hook to take effect early enough to > affect the edit-headers. But the action occurs after leaving the > editor. I didn't infer that from the reply-hook text: Note the reply-hook is executing before the editor runs, but it is only pushing the commands onto the input buffer. They don't get executed until the "compose" screen comes up and reads from that input buffer (or various prompts pop up and read from the buffer too). > I'll put a reminder in my own notes. It's not as easy as it used to be > to remember the details when moving rapidly from activity to activity. > > So edit-to is robust enough for everyday use, it seems. Just to add another caution: if for some reason later on you decided to "set include=yes" in your .muttrc, the prompt would no longer occur and that leading "y" in the macro might end up sending the email! -- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
signature.asc
Description: PGP signature