On 31-Aug-2000, Michael Elkins wrote:
> On Thu, Aug 31, 2000 at 08:04:23AM -0500, John Buttery wrote:
> > 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.
>
> This is not currently possible. I'm not even sure how you would script that
> sort of functionality either, because you'd have to have some language
> constructs that say 'get-me-the-name-of-message-102-attachment-1', which
> would be rather difficult. Your best bet is to just create a shell script
> which does this that you can pipe a file to and executes what command you
> want. You can just pick a temporary file name.
Well, there's always the handy trick of defining specific mime types
as handled by sz. I use this for my wife's login so that she can
easily transfer pictures from her unix shell to her windows machine.
I simply placed this line in ~/.mailcap:
image/*; sz '%s'
so when she selects an image from within mutt, it sz's it to her (which
SecureCRT handles quite seamlessly). I presume you could tweak the
"image/*" part to catch whatever particular type of file you want to
sz.
--
________________________________________________________________________
|David McNett |To ensure privacy and data integrity this message has|
|[EMAIL PROTECTED]|been encrypted using dual rounds of ROT-13 encryption|
|Birmingham, AL USA|Please encrypt all important correspondence with PGP!|
PGP signature