This is less a question about a specific implementation (although I
would like to know how to do this) and more about the concept in
general; is it possible to, at the stroke of a key (macro), have mutt save
an attachment to a file and then run a shell commandline with the saved
file's name somewhere in that commandline? The specific effect I'm trying
to achieve is to be able to be in the attachments menu, select one of the
attachments, and press a key to have it sent to my terminal via ZMODEM,
using the UNIX utility "sz". I can't use the pipe command, because sz
wants the file on its commandline, not to its stdin. I've searched the
manual, and although I suspect this procedure is possible, I can't figure
out how to do it.
Basically, the end result is that if I have a file called
"stressre1.exe" (for example) attached to an email, I can write a macro
that when invoked will do "sz stressre1.exe" as if I had saved the
attachment, exited mutt, and typed that at the shell.
TIA, John